Share via


Operation.ScriptGrant Method

Grants the script for the operation.

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

Syntax

'Declaration
Public Function ScriptGrant ( _
    permission As PermissionType, _
    principalId As Integer _
) As ISfcScript
'Usage
Dim instance As Operation 
Dim permission As PermissionType 
Dim principalId As Integer 
Dim returnValue As ISfcScript 

returnValue = instance.ScriptGrant(permission, _
    principalId)
public ISfcScript ScriptGrant(
    PermissionType permission,
    int principalId
)
public:
ISfcScript^ ScriptGrant(
    PermissionType permission, 
    int principalId
)
member ScriptGrant : 
        permission:PermissionType * 
        principalId:int -> ISfcScript
public function ScriptGrant(
    permission : PermissionType, 
    principalId : int
) : ISfcScript

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
The granted operation script.

See Also

Reference

Operation Class

Microsoft.SqlServer.Management.IntegrationServices Namespace