FieldSchema Constructor (String, Type)
Initializes a new instance of the FieldSchema class that is based on the specified name and data type.
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. Must be a valid value type.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is a nullptr, or dataType is a nullptr. |
| ArgumentException | name is 0 length. |
| MetadataStoreInvalidOperationException | dataType is not a value type or is of type System::Guid. |
Show: