Class RepositoryItem
- Namespace
- combit.Reporting.Repository
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Represents an entry of a IRepository.
public class RepositoryItem
- Inheritance
-
RepositoryItem
- Inherited Members
Constructors
RepositoryItem(string, string, string, DateTime)
Initializes a new instance of the RepositoryItem class.
public RepositoryItem(string internalID, string descriptor, string type, DateTime lastModificationUTC)
Parameters
internalIDstringSee InternalID.
descriptorstringSee Descriptor.
typestringSee Type.
lastModificationUTCDateTimeSee LastModificationUTC.
Fields
MAXIMUM_TYPE_LENGTH
Maximum length of the Type property.
public const int MAXIMUM_TYPE_LENGTH = 100
Field Value
Properties
Descriptor
Internal file metadata (name in UI etc.) in a string-serialized format. May be modified using the RepositoryItemDescriptor class.
public string Descriptor { get; set; }
Property Value
FolderId
The Id of a parent folder for the tree structure.
public string? FolderId { get; set; }
Property Value
FolderPath
Full folder path.
public string? FolderPath { get; set; }
Property Value
InternalID
ID within a LL project. Usually of the form 'repository://[GUID]'. Must be unique within one repository.
public string InternalID { get; set; }
Property Value
IsEmpty
Flags a repository item as empty. For project items, this will cause the designer to initialize a new project when loading the repository item.
public bool IsEmpty { get; set; }
Property Value
LastModificationUTC
Timestamp of the last modification of the repository item (UTC time). If required, the timestamp is converted to local time internally.
public DateTime LastModificationUTC { get; set; }
Property Value
Type
Item type (drilldown project, image, shapefile, etc. or a custom type). Maximum length is MAXIMUM_TYPE_LENGTH. The supported values are defined in RepositoryItemType.
public string Type { get; set; }
Property Value
UIName
Name of the file. Fetched from the internal file metadata Descriptor
public string? UIName { get; set; }
Property Value
Methods
ExtractDisplayName(int)
Returns the display name of the repository item that is encoded in the descriptor. As this can be a rather expensive operation, consider saving this value instead of repeatedly calling this method.
public string? ExtractDisplayName(int lcid = 0)
Parameters
lcidintLCID of the language to return.
Returns
IsValidItemId(string)
Validates if the specified ID has a valid format for the InternalID of a repository item.
public static bool IsValidItemId(string repoId)
Parameters
repoIdstring