Languages 属性
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(Language))> _
Public ReadOnly Property Languages As LanguageCollection
Get
用法
Dim instance As Server
Dim value As LanguageCollection
value = instance.Languages
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(Language))]
public LanguageCollection Languages { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(Language))]
public:
property LanguageCollection^ Languages {
LanguageCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(Language))>]
member Languages : LanguageCollection
function get Languages () : LanguageCollection
属性值
类型:Microsoft.SqlServer.Management.Smo. . :: . .LanguageCollection
一个 LanguageCollection 对象,该对象表示 SQL Server 的实例支持的所有语言。
注释
The Languages property points to the LanguageCollection object. You can use the collection to reference the various written languages that are supported by SQL Server.
示例
Visual Basic
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Display the supported languages.
Dim lng As Language
For Each lng In srv.Languages
Console.WriteLine(lng.Name)
Next
PowerShell
$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
foreach ($lng in $srv.Languages)
{
Write-Host $lng.Name
}