ISiteMetaDataReadT Method
|
Retrieves a meta data value via callback
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
SyntaxT MetaDataRead<T>(
Func<IContentStoreMetaData, T> callback
)
Function MetaDataRead(Of T) (
callback As Func(Of IContentStoreMetaData, T)
) As T
generic<typename T>
T MetaDataRead(
Func<IContentStoreMetaData^, T>^ callback
)
abstract MetaDataRead :
callback : Func<IContentStoreMetaData, 'T> -> 'T
Parameters
- callback
- Type: SystemFuncIContentStoreMetaData, T
The method to call to get the actual metadata value.
Type Parameters
- T
- Type of the value to return. Result will be casted to this value.
Return Value
Type:
TValue of Site instance metadata
RemarksIf the meta data not yet exists in meta data collection, it will be created on the fly with empty value.
ExamplesTo retrieve the Server Name of this Site Instance
var serverName = MetaDataRead<string>(csmd => csmd.ServerName);
See Also