次の方法で共有


FieldSchema コンストラクター (String, Type)

指定した名前とデータ型に基づく FieldSchema クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    name As String, _
    dataType As Type _
)
'使用
Dim name As String
Dim dataType As Type

Dim instance As New FieldSchema(name, dataType)
public FieldSchema(
    string name,
    Type dataType
)
public:
FieldSchema(
    String^ name, 
    Type^ dataType
)
new : 
        name:string * 
        dataType:Type -> FieldSchema
public function FieldSchema(
    name : String, 
    dataType : Type
)

パラメーター

  • dataType
    型 : System. . :: . .Type
    フィールドのデータ型です。有効な値の型でなければなりません。

例外

例外 条件
ArgumentNullException

name が null Nothing nullptr unit NULL 参照 (Visual Basic では Nothing) であるか、dataType が null Nothing nullptr unit NULL 参照 (Visual Basic では Nothing) です。

ArgumentException

name の長さが 0 です。

MetadataStoreInvalidOperationException

dataType が値の型でないか、System..::..Guid 型です。

説明

この形式のコンストラクターは、MaxLength を dataType のサイズ (バイト単位) に設定します。

参照

参照

FieldSchemaクラス

FieldSchema メンバー

FieldSchema オーバーロード

Microsoft.Synchronization.MetadataStorage 名前空間