Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the fixed server role associated with the referenced connection.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public ReadOnly Property FixedServerRoles As FixedServerRoles
Get
'Usage
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
Property Value
Type: Microsoft.SqlServer.Management.Common.FixedServerRoles
A FixedServerRoles object value that specifies the fixed server role associated with the referenced connection.
Examples
C#
ServerConnection conn = new ServerConnection();
Console.WriteLine(conn.FixedServerRoles.ToString());
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
Write-Host $conn.FixedServerRoles
See Also
Reference
Microsoft.SqlServer.Management.Common Namespace