다음을 통해 공유


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