IsMember Method
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The IsMember method returns TRUE when the user or login referenced is a member of the role identified in the Role argument.
구문
object
.IsMember(
Role
)
Parts
object
Expression that evaluates to an object in the Applies To list.Role
String that identifies a Microsoft SQL Server or database role by name.
Prototype (C/C++)
HRESULT IsMember(SQLDMO_LPCSTR szRole,
LPBOOL pRetVal);
주의
For the Login object, the Role argument specifies a server role. For the User object, a system or user-defined database role is identified by the argument.