Partager via


Propriété UserDefinedDataType.Length

Gets or sets the number of characters in the user-defined data type.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property Length As Integer 
    Get 
    Set
'Utilisation
Dim instance As UserDefinedDataType 
Dim value As Integer 

value = instance.Length

instance.Length = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public int Length { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property int Length {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member Length : int with get, set
function get Length () : int 
function set Length (value : int)

Valeur de propriété

Type : System.Int32
An Int32 value that specifies the maximum number of characters permitted in the user-defined data type.

Exemples

Utilisation des types de données

Voir aussi

Référence

UserDefinedDataType Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Types de données (Moteur de base de données)

CREATE TYPE (Transact-SQL)