Proprietà ServerConnection.FixedServerRoles
Gets the fixed server role associated with the referenced connection.
Spazio dei nomi Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Sintassi
'Dichiarazione
Public ReadOnly Property FixedServerRoles As FixedServerRoles
Get
'Utilizzo
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
Valore proprietà
Tipo: Microsoft.SqlServer.Management.Common.FixedServerRoles
A FixedServerRoles object value that specifies the fixed server role associated with the referenced connection.
Esempi
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.FixedServerRoles.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.FixedServerRoles
Vedere anche
Riferimento
Spazio dei nomi Microsoft.SqlServer.Management.Common
Altre risorse
Autorizzazioni dei ruoli predefiniti del server (Motore di database)