Remove 方法
從權限集合移除權限。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Function Remove ( _
permission As DatabasePermission _
) As DatabasePermissionSet
'用途
Dim instance As DatabasePermissionSet
Dim permission As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = instance.Remove(permission)
public DatabasePermissionSet Remove(
DatabasePermission permission
)
public:
DatabasePermissionSet^ Remove(
DatabasePermission^ permission
)
member Remove :
permission:DatabasePermission -> DatabasePermissionSet
public function Remove(
permission : DatabasePermission
) : DatabasePermissionSet
參數
- permission
型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermission
指定要移除之權限的 DatabasePermission 物件。
傳回值
型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermissionSet
在權限移除後指定權限集合的 DatabasePermissionSet 物件。