ObjectPermission.ToObjectPermissionSet 方法
Converts an object permission into an object permission set.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Function ToObjectPermissionSet ( _
permission As ObjectPermission _
) As ObjectPermissionSet
用法
Dim permission As ObjectPermission
Dim returnValue As ObjectPermissionSet
returnValue = ObjectPermission.ToObjectPermissionSet(permission)
public static ObjectPermissionSet ToObjectPermissionSet(
ObjectPermission permission
)
public:
static ObjectPermissionSet^ ToObjectPermissionSet(
ObjectPermission^ permission
)
static member ToObjectPermissionSet :
permission:ObjectPermission -> ObjectPermissionSet
public static function ToObjectPermissionSet(
permission : ObjectPermission
) : ObjectPermissionSet
参数
- permission
类型:Microsoft.SqlServer.Management.Smo.ObjectPermission
An ObjectPermission object that specifies the object permission.
返回值
类型:Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
An ObjectPermissionSet object that specifies a set of object permissions.