Freigeben über


ToObjectPermissionSet-Methode

Converts an object permission into an object permission set.

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

Syntax

'Declaration
Public Shared Function ToObjectPermissionSet ( _
    permission As ObjectPermission _
) As ObjectPermissionSet
'Usage
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

Parameter

Rückgabewert

Typ: Microsoft.SqlServer.Management.Smo. . :: . .ObjectPermissionSet
An ObjectPermissionSet object that specifies a set of object permissions.