Proprietà SystemDataTypes
Rappresenta una raccolta di oggetti SystemDataType. Ogni oggetto SystemDataType rappresenta un tipo di dati di sistema definito nell'istanza di SQL Server.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(SystemDataType))> _
Public ReadOnly Property SystemDataTypes As SystemDataTypeCollection
Get
'Utilizzo
Dim instance As Server
Dim value As SystemDataTypeCollection
value = instance.SystemDataTypes
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(SystemDataType))]
public SystemDataTypeCollection SystemDataTypes { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(SystemDataType))]
public:
property SystemDataTypeCollection^ SystemDataTypes {
SystemDataTypeCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(SystemDataType))>]
member SystemDataTypes : SystemDataTypeCollection
function get SystemDataTypes () : SystemDataTypeCollection
Valore proprietà
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .SystemDataTypeCollection
Oggetto SystemDataTypeCollection che rappresenta tutti i tipi di dati di sistema definiti nell'istanza di SQL Server.
Osservazioni
The SystemDataTypes property points to the SystemDataTypeCollection object. You can use the collection to reference the system data types that are available to the instance of SQL Server.
Esempi
Visual Basic
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display the system data types.
Dim sr As SystemDataType
For Each sr In srv.SystemDataTypes
Console.WriteLine(sr.Name)
Next
PowerShell
$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
foreach ($sr in $srv.SystemDataTypes)
{
Write-Host $sr.Name
}
Vedere anche