Class ManagerItem<TInstance>
Manager item.
Inheritance
Inherited Members
Namespace: Terrasoft.Core
Assembly: Terrasoft.Core.dll
Syntax
public class ManagerItem<TInstance> : IManagerItem<TInstance>, IManagerItem where TInstance : class, IManagerItemInstance
Type Parameters
Name | Description |
---|---|
TInstance | The class implementing the IManagerItemInstance interface. |
Constructors
ManagerItem()
Declaration
public ManagerItem()
Properties
Caption
Header.
Declaration
public virtual LocalizableString Caption { get; set; }
Property Value
Type | Description |
---|---|
LocalizableString |
Id
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Instance
The instance of the type of the manager item. If the reference to the instance of the manager item is null
, an exception is thrown.
Declaration
public virtual TInstance Instance { get; set; }
Property Value
Type | Description |
---|---|
TInstance |
Manager
Manager.
Declaration
public virtual IManager Manager { get; }
Property Value
Type | Description |
---|---|
IManager |
Name
Name.
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RealUId
A unique identifier for the manager item that contains the UId of the schema assigned to it when it was created.
Declaration
public Guid RealUId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
SafeInstance
A secure instance of the manager item type. If the reference to the instance of the manager item is null
, then null
is returned.
Declaration
public virtual TInstance SafeInstance { get; set; }
Property Value
Type | Description |
---|---|
TInstance |
UId
Identifier of the manager item whose value depends on the schema type. If the schema replaces the parent schema then the UId field is equal the RealUId field of the “original” schema or the UId field is equal the current value of the RealUId field.
Declaration
public Guid UId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
HandleNameChanging(String)
Updates the contents of the manager item when it is renamed.
Declaration
public virtual void HandleNameChanging(string oldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldName | The old name of the manager item. |
Explicit Interface Implementations
IManagerItem.Instance
Manager item instance of the System.Object type. If manager item instance is null
, exception is thrown.
Declaration
object IManagerItem.Instance { get; set; }
Returns
Type | Description |
---|---|
System.Object |
IManagerItem.SafeInstance
A secure instance of the manager item of theSystem.Object type. If the reference to the instance of the manager item is null
, then null
is returned.
Declaration
object IManagerItem.SafeInstance { get; set; }
Returns
Type | Description |
---|---|
System.Object |