SqlSyncFieldValue.GetUInt16 Method
Gets the value of the custom field.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
Syntax
'Declaration
Public Overrides Function GetUInt16 As Nullable(Of UShort)
'Usage
Dim instance As SqlSyncFieldValue
Dim returnValue As Nullable(Of UShort)
returnValue = instance.GetUInt16()
public override Nullable<ushort> GetUInt16()
public:
virtual Nullable<unsigned short> GetUInt16() override
abstract GetUInt16 : unit -> Nullable<uint16>
override GetUInt16 : unit -> Nullable<uint16>
public override function GetUInt16() : Nullable<ushort>
Return Value
Type: System.Nullable<UInt16>
The value of the custom field. Returns a null reference (Nothing in Visual Basic) when the field value has not been set.
Exceptions
Exception | Condition |
---|---|
MetadataStoreInvalidOperationException | The field in this SqlSyncFieldValue object is not a UInt16. |