Jaa


ServerConnection.IsInFixedServerRole Method

Tests whether the logon associated with the referenced connection is a member of the specified fixed server role.

Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
Public Function IsInFixedServerRole ( _
    fixedServerRole As FixedServerRoles _
) As Boolean
public bool IsInFixedServerRole (
    FixedServerRoles fixedServerRole
)
public:
bool IsInFixedServerRole (
    FixedServerRoles fixedServerRole
)
public boolean IsInFixedServerRole (
    FixedServerRoles fixedServerRole
)
public function IsInFixedServerRole (
    fixedServerRole : FixedServerRoles
) : boolean

Parameters

  • fixedServerRole
    A FixedServerRoles object value that specifies the fixed server role to be compared with the logon.

Return Value

A Boolean value that specifies whether the logon is a member of the specified fixed server role. If True, the logon is a member of the specified fixed server role. If False, the logon is not a member of the specified fixed server role.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace

Other Resources

Calling Methods
Permissions of Fixed Server Roles