ProjectInfo.ScriptGrant Method (PermissionType, Int32)
Retrieves the script to grant the permission to a project.
Assembly: Microsoft.SqlServer.Management.IntegrationServices (in Microsoft.SqlServer.Management.IntegrationServices.dll)
Parameters
- permission
-
Type:
Microsoft.SqlServer.Management.IntegrationServices.PermissionType
The permission type.
- principalId
-
Type:
System.Int32
The ID of the principal.
Return Value
Type: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScriptThe script to grant the permission to a project.
Show: