Udostępnij za pośrednictwem


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)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    dataType As Type, _
    maxLength As UInteger _
)
'Usage
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
)

Parameters

  • name
  • dataType
    The data type of the field.
  • maxLength
    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.

Exceptions

Exception type Condition

ArgumentNullException

name is a null reference (Nothing in Visual Basic), or dataType is a null reference (Nothing in Visual Basic).

ArgumentException

name is 0 length.

ArgumentOutOfRangeException

maxLength is 0.

See Also

Reference

FieldSchema Class
FieldSchema Members
Microsoft.Synchronization.MetadataStorage Namespace