SyncronizedEPTDocumentGetMetaFieldAsString Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Returns the value, as a String, of a specified Content Studio meta data field that exists for every EPT document.

Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public string GetMetaFieldAsString(
	string fieldName


Type: SystemString
The name of the field. This name must start with CSMetaDataPrefix or WFMetaDataPrefix.

Return Value

Type: String
The value of the field if found, null if the field does not exist.

ArgumentNullExceptionThe argument FieldName cannot be null.
ArgumentOutOfRangeExceptionThe argument FieldName must start with the values of CSMetaDataPrefix or WFMetaDataPrefix.

This method returns null if schema binding is off and for documents created with this class even if they are saved and published. In order to read the meta data fields given for a created document you must reload it.
See Also