Server.Languages 속성

Represents a collection of Language objects. Each Language object represents an languages supported by the instance of SQL Server.

네임스페이스:  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
A LanguageCollection object that represents all the languages supported by the instance of 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
}

참고 항목

참조

Server 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

속성 설정

서버 관리