Condividi tramite


Metodo AddToRole

Adds the database user to the specified role.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub AddToRole ( _
    role As String _
)
'Utilizzo
Dim instance As User
Dim role As String

instance.AddToRole(role)
public void AddToRole(
    string role
)
public:
void AddToRole(
    String^ role
)
member AddToRole : 
        role:string -> unit 
public function AddToRole(
    role : String
)

Parametri