Метод 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.