Share via


Operation.ScriptGrant(PermissionType, Int32) Method

Definition

Grants the script for the operation.

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.

principalId
Int32

The principal identifier.

Returns

The granted operation script.

Applies to