ServerConnection.FixedServerRoles 속성

Gets the fixed server role associated with the referenced connection.

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
Public ReadOnly Property FixedServerRoles As FixedServerRoles 
    Get
‘사용 방법
Dim instance As ServerConnection 
Dim value As FixedServerRoles 

value = instance.FixedServerRoles
public FixedServerRoles FixedServerRoles { get; }
public:
property FixedServerRoles FixedServerRoles {
    FixedServerRoles get ();
}
member FixedServerRoles : FixedServerRoles
function get FixedServerRoles () : FixedServerRoles

속성 값

유형: Microsoft.SqlServer.Management.Common.FixedServerRoles
A FixedServerRoles object value that specifies the fixed server role associated with the referenced connection.

C#

ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.FixedServerRoles.ToString());

PowerShell

$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.FixedServerRoles

참고 항목

참조

ServerConnection 클래스

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

관련 자료

고정 서버 역할의 권한(데이터베이스 엔진)