フィールドの指定した名前、データ型、および最大長に基づいた FieldSchema クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.Synchronization.MetadataStorage
アセンブリ: Microsoft.Synchronization.MetadataStorage (Microsoft.Synchronization.MetadataStorage.dll 内)
構文
'宣言
Public Sub New ( _
name As String, _
dataType As Type, _
maxLength As UInteger _
)
'使用
Dim name As String
Dim dataType As Type
Dim maxLength As UInteger
Dim instance As New FieldSchema(name, dataType, _
maxLength)
public FieldSchema(
string name,
Type dataType,
uint maxLength
)
public:
FieldSchema(
String^ name,
Type^ dataType,
unsigned int maxLength
)
new :
name:string *
dataType:Type *
maxLength:uint32 -> FieldSchema
public function FieldSchema(
name : String,
dataType : Type,
maxLength : uint
)
パラメーター
- name
型 : System. . :: . .String
カスタム フィールドの名前です。
- dataType
型 : System. . :: . .Type
フィールドのデータ型です。
- maxLength
型 : System. . :: . .UInt32
フィールドの最大長 (フィールドがバイト配列の場合はバイト数、文字列の場合は文字数) です。他の種類のフィールドでは、この値は無視されます。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | name が null Nothing nullptr unit NULL 参照 (Visual Basic では Nothing) であるか、dataType が null Nothing nullptr unit NULL 参照 (Visual Basic では Nothing) です。 |
| ArgumentException | name の長さが 0 です。 |
| ArgumentOutOfRangeException | maxLength が 0 です。 |