FieldSchema Constructor (String, Type, UInt32)
Initializes a new instance of the FieldSchema class that is based on the specified name, data type, and the maximum length of the field.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
Parameters
- name
- Type: System::String
The name of the custom field.
- dataType
- Type: System::Type
The data type of the field.
- maxLength
- Type: System::UInt32
The maximum length of the field, in bytes when the field is an array of bytes or in characters when the field is a string. This value is ignored for other types of fields.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is a nullptr, or dataType is a nullptr. |
| ArgumentException | name is 0 length. |
| ArgumentOutOfRangeException | maxLength is 0. |
Show: