Condividi tramite


Metodo ProjectInfo.ScriptGrant

Retrieves the script to grant the permission to a project.

Spazio dei nomi  Microsoft.SqlServer.Management.IntegrationServices
Assembly:  Microsoft.SqlServer.Management.IntegrationServices (in Microsoft.SqlServer.Management.IntegrationServices.dll)

Sintassi

'Dichiarazione
Public Function ScriptGrant ( _
    permission As PermissionType, _
    principalId As Integer _
) As ISfcScript
'Utilizzo
Dim instance As ProjectInfo 
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

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
The script to grant the permission to a project.

Vedere anche

Riferimento

ProjectInfo Classe

Spazio dei nomi Microsoft.SqlServer.Management.IntegrationServices