Class PropertyResolver
Component that locates a PropertyData (possibly nested) in a PropertyDataCollection.
Inheritance
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PropertyResolver
Constructors
PropertyResolver()
Declaration
public PropertyResolver()
Fields
DefaultScopeNameSeparator
The character '.'
Declaration
public static readonly char DefaultScopeNameSeparator
Field Value
| Type | Description |
|---|---|
| System.Char |
Methods
ResolveProperty(PropertyDataCollection, String)
Resolves the PropertyData using the DefaultScopeNameSeparator.
Declaration
public PropertyData ResolveProperty(PropertyDataCollection properties, string scopeName)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDataCollection | properties | The properties. |
| System.String | scopeName | Name of the scope. |
Returns
| Type | Description |
|---|---|
| PropertyData |
ResolveProperty(PropertyDataCollection, String, Char)
Resolves the PropertyData with given scopeName (e.g. in format 'MyBlock.MyNestedBlock').
Declaration
public PropertyData ResolveProperty(PropertyDataCollection properties, string scopeName, char scopeNameSeparator)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDataCollection | properties | The properties. |
| System.String | scopeName | Name of the scope. |
| System.Char | scopeNameSeparator | The scope name separator (in example above '.'). |
Returns
| Type | Description |
|---|---|
| PropertyData |
ResolveProperty<TPropertyData>(PropertyDataCollection, String)
Resolves the PropertyData with given scopeName (e.g. in format 'MyBlock.MyNestedBlock') using the default name separator.
Declaration
public TPropertyData ResolveProperty<TPropertyData>(PropertyDataCollection properties, string scopeName)
where TPropertyData : PropertyData
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDataCollection | properties | The properties. |
| System.String | scopeName | Name of the scope. |
Returns
| Type | Description |
|---|---|
| TPropertyData |
Type Parameters
| Name | Description |
|---|---|
| TPropertyData |
ResolveProperty<TPropertyData>(PropertyDataCollection, String, Char)
Resolves the PropertyData with given scopeName (e.g. in format 'MyBlock.MyNestedBlock').
Declaration
public virtual TPropertyData ResolveProperty<TPropertyData>(PropertyDataCollection properties, string scopeName, char scopeNameSeparator)
where TPropertyData : PropertyData
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyDataCollection | properties | The properties. |
| System.String | scopeName | Name of the scope. |
| System.Char | scopeNameSeparator | The scope name separator (in example above '.'). |
Returns
| Type | Description |
|---|---|
| TPropertyData |
Type Parameters
| Name | Description |
|---|---|
| TPropertyData | The type of the property data that should be returned. |