Deny 方法 (ObjectPermissionSet, String[], Boolean)
在 Service Broker 服務上,拒絕指定之被授與者對所指定權限的存取權。
命名空間: Microsoft.SqlServer.Management.Smo.Broker
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Deny ( _
permission As ObjectPermissionSet, _
granteeNames As String(), _
cascade As Boolean _
)
'用途
Dim instance As BrokerService
Dim permission As ObjectPermissionSet
Dim granteeNames As String()
Dim cascade As Boolean
instance.Deny(permission, granteeNames, _
cascade)
public void Deny(
ObjectPermissionSet permission,
string[] granteeNames,
bool cascade
)
public:
virtual void Deny(
ObjectPermissionSet^ permission,
array<String^>^ granteeNames,
bool cascade
) sealed
abstract Deny :
permission:ObjectPermissionSet *
granteeNames:string[] *
cascade:bool -> unit
override Deny :
permission:ObjectPermissionSet *
granteeNames:string[] *
cascade:bool -> unit
public final function Deny(
permission : ObjectPermissionSet,
granteeNames : String[],
cascade : boolean
)
參數
- permission
型別:Microsoft.SqlServer.Management.Smo. . :: . .ObjectPermissionSet
指定權限的 ObjectPermissionSet 物件值。
- granteeNames
型別:array<System. . :: . .String> [] () [] []
String 陣列,指定要拒絕權限存取權的被授與者清單。
- cascade
型別:System. . :: . .Boolean
Boolean 屬性,指定是否也要針對被授與者已授與權限存取權的使用者拒絕存取權限。
如果為 True,被授與者以及被授與者已授與權限存取權的使用者的權限存取權都會遭拒。
如果為 False,僅會針對被授與者拒絕權限存取權。
實作
IObjectPermission. . :: . .Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean)