Export (0) Print
Expand All

User.IsMember Method (String)

 

Applies To: SQL Server 2016 Preview

Verifies whether the database user is a member of the specified role.

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

public bool IsMember(
	string role
)

Parameters

role
Type: System.String

A String value that specifies the role.

Return Value

Type: System.Boolean

A Boolean value that specifies whether the database user is a member of the role.

If True, the database user is a member of the role.

If False (default), the database user is not a member of the role.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft