フィールドの指定した名前、データ型、および最大長に基づいた 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
)
public FieldSchema (
String name,
Type dataType,
UInt32 maxLength
)
public function FieldSchema (
name : String,
dataType : Type,
maxLength : uint
)
パラメーター
- name
- dataType
フィールドのデータ型です。
- maxLength
フィールドの最大長 (フィールドがバイト配列の場合はバイト数、文字列の場合は文字数) です。他の種類のフィールドでは、この値は無視されます。
例外
| 例外の種類 | 条件 |
|---|---|
name が NULL 参照 (Visual Basic では Nothing) です。 であるか、dataType が NULL 参照 (Visual Basic では Nothing) です。 です。 |
|
name の長さが 0 です。 |
|
maxLength が 0 です。 |
参照
リファレンス
FieldSchema クラス
FieldSchema メンバー
Microsoft.Synchronization.MetadataStorage 名前空間