The IsMember method returns True when the user or login referenced is a member of the role identified in the Role argument.
Login Object | User Object |
object.IsMember( Role )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Role | String identifying a Microsoft® SQL Server™ server or database role by name |
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.
HRESULT IsMember(SQLDMO_LPCSTR szRole,
LPBOOL pRetVal);