次の方法で共有


ItemMetadata.GetByteField メソッド

派生クラスでオーバーライドされると、指定されたカスタム フィールドの値を取得します。

名前空間: Microsoft.Synchronization.MetadataStorage
アセンブリ: Microsoft.Synchronization.MetadataStorage (microsoft.synchronization.metadatastorage.dll 内)

構文

'宣言
Public MustOverride Function GetByteField ( _
    fieldName As String _
) As Nullable(Of Byte)
'使用
Dim instance As ItemMetadata
Dim fieldName As String
Dim returnValue As Nullable(Of Byte)

returnValue = instance.GetByteField(fieldName)
public abstract Nullable<byte> GetByteField (
    string fieldName
)
public:
virtual Nullable<unsigned char> GetByteField (
    String^ fieldName
) abstract
public abstract Nullable<byte> GetByteField (
    String fieldName
)
public abstract function GetByteField (
    fieldName : String
) : Nullable<byte>

パラメーター

  • fieldName
    カスタム フィールドの名前です。

戻り値

指定されたカスタム フィールドの値です。フィールドの値が設定されていない場合は、NULL 参照 (Visual Basic では Nothing) です。 を返します。

例外

例外の種類 条件

ArgumentNullException

fieldName が NULL 参照 (Visual Basic では Nothing) です。 です。

ArgumentException

fieldName の長さが 0 です。

解説

カスタム フィールドは、レプリカ メタデータを最初に初期化するときに、FieldSchema オブジェクトで定義する必要があります。

参照

リファレンス

ItemMetadata クラス
ItemMetadata メンバー
Microsoft.Synchronization.MetadataStorage 名前空間