User.AddToRole Method (String)

 

Adds the database user to the specified role.

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

public void AddToRole(
	string role
)

Parameters

role
Type: System.String

A String value that specifies a database role.

Return to top
Show: