Propriedade do RDL ServerConnection.FixedServerRoles
Gets the fixed server role associated with the referenced connection.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxe
'Declaração
Public ReadOnly Property FixedServerRoles As FixedServerRoles
Get
'Uso
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
Valor da propriedade
Tipo: Microsoft.SqlServer.Management.Common.FixedServerRoles
A FixedServerRoles object value that specifies the fixed server role associated with the referenced connection.
Exemplos
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.FixedServerRoles.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.FixedServerRoles
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Common
Outros recursos
Permissões de funções de servidor fixas (Mecanismo de Banco de Dados)