IsInFixedServerRole 메서드
Tests whether the logon associated with the referenced connection is a member of the specified fixed server role.
네임스페이스: Microsoft.SqlServer.Management.Common
어셈블리: Microsoft.SqlServer.ConnectionInfo.dll의 Microsoft.SqlServer.ConnectionInfo
구문
‘선언
Public Function IsInFixedServerRole ( _
fixedServerRole As FixedServerRoles _
) As Boolean
‘사용 방법
Dim instance As ServerConnection
Dim fixedServerRole As FixedServerRoles
Dim returnValue As Boolean
returnValue = instance.IsInFixedServerRole(fixedServerRole)
public bool IsInFixedServerRole(
FixedServerRoles fixedServerRole
)
public:
bool IsInFixedServerRole(
FixedServerRoles fixedServerRole
)
member IsInFixedServerRole :
fixedServerRole:FixedServerRoles -> bool
public function IsInFixedServerRole(
fixedServerRole : FixedServerRoles
) : boolean
매개 변수
- fixedServerRole
형식: Microsoft.SqlServer.Management.Common. . :: . .FixedServerRoles
A FixedServerRoles object value that specifies the fixed server role to be compared with the logon.
반환 값
형식: System. . :: . .Boolean
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.