Compartilhar via


Método EnvironmentInfo.Grant

Grants the permission to a specified user.

Namespace:  Microsoft.SqlServer.Management.IntegrationServices
Assembly:  Microsoft.SqlServer.Management.IntegrationServices (em Microsoft.SqlServer.Management.IntegrationServices.dll)

Sintaxe

'Declaração
Public Sub Grant ( _
    permission As PermissionType, _
    granteeName As String _
)
'Uso
Dim instance As EnvironmentInfo 
Dim permission As PermissionType 
Dim granteeName As String

instance.Grant(permission, granteeName)
public void Grant(
    PermissionType permission,
    string granteeName
)
public:
void Grant(
    PermissionType permission, 
    String^ granteeName
)
member Grant : 
        permission:PermissionType * 
        granteeName:string -> unit
public function Grant(
    permission : PermissionType, 
    granteeName : String
)

Parâmetros

Consulte também

Referência

EnvironmentInfo Classe

Namespace Microsoft.SqlServer.Management.IntegrationServices