Revoke 方法 (ObjectPermissionSet, String)
撤銷先前在預存程序上授與被授與者的權限集。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Revoke ( _
permission As ObjectPermissionSet, _
granteeName As String _
)
'用途
Dim instance As StoredProcedure
Dim permission As ObjectPermissionSet
Dim granteeName As String
instance.Revoke(permission, granteeName)
public void Revoke(
ObjectPermissionSet permission,
string granteeName
)
public:
virtual void Revoke(
ObjectPermissionSet^ permission,
String^ granteeName
) sealed
abstract Revoke :
permission:ObjectPermissionSet *
granteeName:string -> unit
override Revoke :
permission:ObjectPermissionSet *
granteeName:string -> unit
public final function Revoke(
permission : ObjectPermissionSet,
granteeName : String
)
參數
- permission
型別:Microsoft.SqlServer.Management.Smo. . :: . .ObjectPermissionSet
指定權限集的 ObjectPermissionSet 物件。
- granteeName
型別:System. . :: . .String
String 值,指定要撤銷權限集的被授與者。
實作
IObjectPermission. . :: . .Revoke(ObjectPermissionSet, String)