共用方式為


EnvironmentInfo.ScriptGrant(PermissionType, Int32) Method

Definition

Indicates the script to grant the permission to an environment.

public:
 Microsoft::SqlServer::Management::Sdk::Sfc::ISfcScript ^ ScriptGrant(Microsoft::SqlServer::Management::IntegrationServices::PermissionType permission, int principalId);
public Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript ScriptGrant (Microsoft.SqlServer.Management.IntegrationServices.PermissionType permission, int principalId);
member this.ScriptGrant : Microsoft.SqlServer.Management.IntegrationServices.PermissionType * int -> Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
Public Function ScriptGrant (permission As PermissionType, principalId As Integer) As ISfcScript

Parameters

permission
PermissionType

The permission type.

principalId
Int32

The identifier of the principal.

Returns

The script to grant the permission to an environment.

Applies to