ModuleProvider.SetChildDelegationState(String, DelegationState) 方法

定义

在派生类中实现时,设置指定路径的指定委派状态。

public:
 virtual void SetChildDelegationState(System::String ^ path, Microsoft::Web::Management::Server::DelegationState ^ delegationState);
public virtual void SetChildDelegationState (string path, Microsoft.Web.Management.Server.DelegationState delegationState);
abstract member SetChildDelegationState : string * Microsoft.Web.Management.Server.DelegationState -> unit
override this.SetChildDelegationState : string * Microsoft.Web.Management.Server.DelegationState -> unit

参数

path
String

调用主机的路径。

delegationState
DelegationState

要设置的 DelegationState

示例

以下示例演示如何重写 SetChildDelegationState 派生类中的 方法。

public override void SetChildDelegationState(string path, DelegationState state) {

    _delState = state;
    if (base.SupportsDelegation != true)
        return;

    base.SetChildDelegationState(path, state);
} 

适用于