在派生类中重写时,获取指定的自定义字段的值。
命名空间: Microsoft.Synchronization.MetadataStorage
程序集: Microsoft.Synchronization.MetadataStorage(在 microsoft.synchronization.metadatastorage.dll 中)
语法
声明
Public MustOverride Function GetUInt32Field ( _
    fieldName As String _
) As Nullable(Of UInteger)
用法
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
public abstract Nullable<UInt32> GetUInt32Field (
    String fieldName
)
public abstract function GetUInt32Field (
    fieldName : String
) : Nullable<uint>
参数
- fieldName
 自定义字段的名称。
返回值
指定的自定义字段的值。如果尚未设置该字段值,则返回 null 引用(在 Visual Basic 中为 Nothing)。
异常
| 异常类型 | 条件 | 
|---|---|
| fieldName 为 null 引用(在 Visual Basic 中为 Nothing)。 | |
| fieldName 的长度为 0。 | 
备注
首次初始化副本元数据时,自定义字段必须在 FieldSchema 对象中定义。
请参阅
参考
ItemMetadata 类
ItemMetadata 成员
Microsoft.Synchronization.MetadataStorage 命名空间