SqlUserDefinedTypeAttribute(Format) Costruttore

Definizione

Attributo obbligatorio per un tipo definito dall'utente (UDT), utilizzato per confermare che il tipo specificato è un UDT e per indicare il formato di memorizzazione dell'UDT.

public:
 SqlUserDefinedTypeAttribute(Microsoft::SqlServer::Server::Format format);
public SqlUserDefinedTypeAttribute (Microsoft.SqlServer.Server.Format format);
new Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute : Microsoft.SqlServer.Server.Format -> Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute
Public Sub New (format As Format)

Parametri

format
Format

Valore dell'enumerazione Format che rappresenta il formato di serializzazione del tipo.

Esempio

// using Microsoft.SqlServer.Server;

[SqlUserDefinedType(Format.Native, MaxByteSize = 8000)]
public class SampleType
{
    //...
}

Commenti

Nell'esempio seguente viene specificato che l'oggetto Format del tipo definito dall'utente è e il MaxByteSize valore è SerializedDataWithMetadata di 8000 byte.

Si applica a