Class RepositoryItemDescriptor
- Namespace
- combit.Reporting.Repository
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Provides access to the descriptors of repository items.
public class RepositoryItemDescriptor : IDisposable
- Inheritance
-
RepositoryItemDescriptor
- Implements
- Inherited Members
Properties
Type
Gets the repository item type from the descriptor. See Type.
public string Type { get; }
Property Value
Methods
ClearUINames()
Resets the language-specific display names of the repository item.
public void ClearUINames()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
GetFolderId()
Returns the folder id of the file (if any).
public string GetFolderId()
Returns
GetParentId()
Returns the repository id of the parent (if any). Allows, e.g., to find the project that belongs to a printer definition or sketch item in the repository.
public string GetParentId()
Returns
GetUIName(int)
public string GetUIName(int lcid)
Parameters
lcidintLCID of the language to get.
Returns
LoadFromDescriptorString(string)
Reads the descriptor that was provided for a repository item in CreateOrUpdateItem(RepositoryItem, string?, Stream?).
public static RepositoryItemDescriptor LoadFromDescriptorString(string descriptor)
Parameters
descriptorstringA repository item's descriptor (see Descriptor).
Returns
SerializeToString()
Converts the modified repository item descriptor back to a string that may be used when registering the available repository items.
public string SerializeToString()
Returns
SetFolderId(string)
Sets the folder id of the file.
public void SetFolderId(string id)
Parameters
idstring
SetUIName(int, string)
Sets a custom display name of a repository item for the specified language.
public void SetUIName(int lcid, string name)
Parameters
SyncItemFromRepository(RepositoryItem, bool)
Fetches the UI name of the current repository item and stores it in the model.
public static void SyncItemFromRepository(RepositoryItem repo, bool forceSync = false)
Parameters
repoRepositoryItemforceSyncboolForces syncing the repository item in case its properties are already populated.