SqlSyncFieldValue::GetUInt16 Method

Gets the value of the custom field.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual Nullable<unsigned short> GetUInt16() override

Return Value

Type: System::Nullable<UInt16>
The value of the custom field. Returns a nullptr when the field value has not been set.

ExceptionCondition
MetadataStoreInvalidOperationException

The field in this SqlSyncFieldValue object is not a UInt16.

Show: