Click or drag to resize

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
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