Export (0) Print
Expand All

Login.IsMember Method

Returns a Boolean value that specifies whether the login account is a member of a specified role.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public bool IsMember(
	string role
)

Parameters

role
Type: String
A String value that specifies the name of the role.

Return Value

Type: Boolean
A Boolean value that specifies whether the login account is a member of the specified role or not.If True, the login account is a member of the specified role.If False, the login account is not a member of the specified role.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft