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.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
FieldSchema(
	String^ name, 
	Type^ dataType, 
	unsigned int maxLength
)

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.

ExceptionCondition
ArgumentNullException

name is a nullptr, or dataType is a nullptr.

ArgumentException

name is 0 length.

ArgumentOutOfRangeException

maxLength is 0.

Show: