CatalogFolder.ScriptGrant 方法
Indicates the script to grant the permission to a folder.
命名空间: Microsoft.SqlServer.Management.IntegrationServices
程序集: Microsoft.SqlServer.Management.IntegrationServices(在 Microsoft.SqlServer.Management.IntegrationServices.dll 中)
语法
声明
Public Function ScriptGrant ( _
permission As PermissionType, _
principalId As Integer _
) As ISfcScript
用法
Dim instance As CatalogFolder
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
参数
- permission
类型:Microsoft.SqlServer.Management.IntegrationServices.PermissionType
The permission type.
- principalId
类型:System.Int32
The identifier of the principal.
返回值
类型:Microsoft.SqlServer.Management.Sdk.Sfc.ISfcScript
The script to grant the permission to a folder.