Condividi tramite


Proprietà UserDefinedType.MaxLength

Gets the maximum length of the alias data type.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MaxLength As Integer 
    Get
'Utilizzo
Dim instance As UserDefinedType 
Dim value As Integer 

value = instance.MaxLength
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int MaxLength { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int MaxLength {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member MaxLength : int
function get MaxLength () : int

Valore proprietà

Tipo: System.Int32
An Int32 value that specifies the maximum length of the alias data type.

Esempi

Utilizzo dei tipi di dati

Vedere anche

Riferimento

UserDefinedType Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Utilizzo di tipi CLR definiti dall'utente

CREATE TYPE (Transact-SQL)