ISiteMetaDataReadT Method Ingeniux CMS Content Store API

Retrieves a meta data value via callback

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

T MetaDataRead<T>(
	Func<IContentStoreMetaData, T> callback
)

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: T
Value of Site instance metadata
Remarks

If the meta data not yet exists in meta data collection, it will be created on the fly with empty value.

Examples

To retrieve the Server Name of this Site Instance

C#
var serverName = MetaDataRead<string>(csmd => csmd.ServerName);
See Also

Reference