Share via


PipeSecurity.RemoveAccessRule(PipeAccessRule) メソッド

定義

現在の PipeSecurity オブジェクトに関連付けられている随意アクセス制御リスト (DACL) からアクセス規則を削除します。

public:
 bool RemoveAccessRule(System::IO::Pipes::PipeAccessRule ^ rule);
public bool RemoveAccessRule (System.IO.Pipes.PipeAccessRule rule);
override this.RemoveAccessRule : System.IO.Pipes.PipeAccessRule -> bool
Public Function RemoveAccessRule (rule As PipeAccessRule) As Boolean

パラメーター

rule
PipeAccessRule

削除するアクセス規則。

戻り値

操作が正常に終了した場合は true。それ以外の場合は false

例外

rule パラメーターが null です。

注釈

メソッドは、RemoveAccessRule一致するすべてのアクセス規則または一致AllowDenyするすべてのアクセス規則を現在PipeSecurityのオブジェクトから削除します。 たとえば、このメソッドを使用すると、値、値、およびユーザー アカウントを使用して作成されたオブジェクトをPipeAccessRuleDeny渡すことによって、ReadユーザーのすべてのDenyアクセス規則を削除できます。 メソッドは RemoveAccessRule 、値または値を Read 指定する拒否規則を Write 削除します。

適用対象