Dela via


ItemMetadata.GetUInt32Field Method

When overridden in a derived class, gets the value of the specified custom field.

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

Syntax

'Declaration
Public MustOverride Function GetUInt32Field ( _
    fieldName As String _
) As Nullable(Of UInteger)
'Usage
Dim instance As ItemMetadata
Dim fieldName As String
Dim returnValue As Nullable(Of UInteger)

returnValue = instance.GetUInt32Field(fieldName)
public abstract Nullable<uint> GetUInt32Field(
    string fieldName
)
public:
virtual Nullable<unsigned int> GetUInt32Field(
    String^ fieldName
) abstract
abstract GetUInt32Field : 
        fieldName:string -> Nullable<uint32> 
public abstract function GetUInt32Field(
    fieldName : String
) : Nullable<uint>

Parameters

Return Value

Type: System.Nullable<UInt32>
The value of the specified custom field. Returns a null reference (Nothing in Visual Basic) when the field value has not been set.

Exceptions

Exception Condition
ArgumentNullException

fieldName is a null reference (Nothing in Visual Basic).

ArgumentException

fieldName is 0 length.

Remarks

Custom fields must be defined in a FieldSchema object when the replica metadata is first initialized.

See Also

Reference

ItemMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace