IFieldValue Interface

Represents a field value in the metadata store.

interface IFieldValue : IUnknown

Members

IFieldValue methods Description

IFieldValue::GetFieldType

Gets the data type of the field.

IFieldValue::GetByteArrayValue

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_BYTEARRAY.

IFieldValue::SetByteArrayValue

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_BYTEARRAY.

IFieldValue::GetStringValue

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_STRING.

IFieldValue::SetStringValue

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_STRING.

IFieldValue::GetUInt8Value

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_UINT8.

IFieldValue::SetUInt8Value

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_UINT8.

IFieldValue::GetUInt16Value

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_UINT16.

IFieldValue::SetUInt16Value

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_UINT16.

IFieldValue::GetUInt32Value

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_UINT32.

IFieldValue::SetUInt32Value

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_UINT32.

IFieldValue::GetUInt64Value

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_UINT64.

IFieldValue::SetUInt64Value

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_UINT64.

IFieldValue::GetGuidValue

Gets the value of a field of type SYNC_METADATA_FIELD_TYPE_GUID.

IFieldValue::SetGuidValue

Sets the field value. Also sets the field type to SYNC_METADATA_FIELD_TYPE_GUID.

Remarks

SYNC_E_METADATA_FIELD_INVALID_TYPE is returned when a field value is accessed by using a method that accesses a data type that is different from the type of the field. For example, a field of type SYNC_METADATA_FIELD_TYPE_GUID can not be accessed by using GetByteArrayValue.

When a field value has not been set, the method used to get that field returns S_FALSE.

Requirements

Header: Metastore.h

See Also

Concepts

Sync Framework Metadata Storage Service Components