共用方式為


EnvironmentInfo.Grant(PermissionType, String) Method

Definition

Grants the permission to a specified user.

public:
 void Grant(Microsoft::SqlServer::Management::IntegrationServices::PermissionType permission, System::String ^ granteeName);
public void Grant (Microsoft.SqlServer.Management.IntegrationServices.PermissionType permission, string granteeName);
member this.Grant : Microsoft.SqlServer.Management.IntegrationServices.PermissionType * string -> unit
Public Sub Grant (permission As PermissionType, granteeName As String)

Parameters

permission
PermissionType

The permission type.

granteeName
String

The name of the user.

Applies to