GenericPropertyPropertyType Class |
Namespace: CMS.Base
public class GenericProperty<PropertyType> : GenericExtension<PropertyType>, IGenericProperty, IGenericExtension
The GenericPropertyPropertyType type exposes the following members.
Name | Description | |
---|---|---|
GenericPropertyPropertyType |
Empty constructor, creates a property without a name, which expects that its parent property will be set
| |
GenericPropertyPropertyType(String) |
Constructor
|
Name | Description | |
---|---|---|
AsSingleton |
If set, the value of the object points to a singleton of this object
| |
GetInstance |
Gets the extension object instance
(Inherited from GenericExtensionExtensionType.) | |
GetValue |
Gets the property value for internal purposes
| |
Initialize |
Initializes the extension
(Inherited from GenericExtensionExtensionType.) | |
NewGenericProperty |
Creates a new property of the given type, initialized to the extension value
(Inherited from GenericExtensionExtensionType.) | |
NewProperty |
Creates a new property of the given type, initialized to the extension value
(Inherited from GenericExtensionExtensionType.) | |
NewValue |
Creates a new value of the given type
(Inherited from GenericExtensionExtensionType.) | |
RegisterAsExtensionTo |
Registers the extension as an extension to the given type
(Inherited from GenericExtensionExtensionType.) | |
RegisterAsPropertyTo |
Registers the extension as a property to the given type
(Inherited from GenericExtensionExtensionType.) | |
RegisterAsStaticPropertyTo |
Registers the extension as a property to the given type
| |
SetInstance |
Sets the extension object instance
(Inherited from GenericExtensionExtensionType.) | |
WithLazyInitialization(FuncObject, ExtensionType) |
Sets up the lazy initialization over this property
(Inherited from GenericExtensionExtensionType.) | |
WithLazyInitialization(FuncPropertyType) |
Sets up the lazy initialization over this property
|
Name | Description | |
---|---|---|
(GenericPropertyPropertyType to PropertyType) |
Implicit conversion to extension type
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
Initializer |
Property initializer
| |
Instance |
Property value. Initializes the extension object if not available
(Inherited from GenericExtensionExtensionType.) | |
IsInitialized |
Returns true if the extension is initialized
(Inherited from GenericExtensionExtensionType.) | |
LazyInstance |
Lazy instance of the extension
(Inherited from GenericExtensionExtensionType.) | |
Name |
Property name
(Overrides GenericExtensionExtensionTypeName.) | |
ParentExtension |
Parent extension. If set, provides instance object to current extension
(Inherited from GenericExtensionExtensionType.) | |
ParentProperty |
Parent property. If set, provides value to current extension
| |
PropertyInitializer |
Property initializer
(Inherited from GenericExtensionExtensionType.) | |
Type |
Type of the property
| |
Value |
Property value
| |
ValueIsSingleton |
If true, the property ensures an object instance in it's value if null
|