Share via


SqlSyncFieldValue.GetByte 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 GetByte As Nullable(Of Byte)
'Usage
Dim instance As SqlSyncFieldValue
Dim returnValue As Nullable(Of Byte)

returnValue = instance.GetByte()
public override Nullable<byte> GetByte()
public:
virtual Nullable<unsigned char> GetByte() override
abstract GetByte : unit -> Nullable<byte> 
override GetByte : unit -> Nullable<byte> 
public override function GetByte() : Nullable<byte>

Return Value

Type: System.Nullable<Byte>
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 Byte.

See Also

Reference

SqlSyncFieldValue Class

Microsoft.Synchronization.MetadataStorage Namespace