다음을 통해 공유


SimpleDelegatedModuleProvider.ReadWriteDelegationState 필드

정의

읽기/쓰기 위임 상태를 지정합니다.

public: static initonly Microsoft::Web::Management::Server::DelegationState ^ ReadWriteDelegationState;
public static readonly Microsoft.Web.Management.Server.DelegationState ReadWriteDelegationState;
 staticval mutable ReadWriteDelegationState : Microsoft.Web.Management.Server.DelegationState
Public Shared ReadOnly ReadWriteDelegationState As DelegationState 

필드 값

예제

다음 예제에서는 지원되는 자식 위임 상태의 배열을 반환합니다.

public static new readonly DelegationState ReadWriteDelegationState =
new DelegationState(ReadWriteDelegationMode,
"Read/Write", "Unlock feature configuration"); 
public override void SetChildDelegationState(string path,
    DelegationState state) {

    if (String.IsNullOrEmpty(path)) {
        throw new ArgumentNullException("path");
    }
    if (path.IndexOf('/') != -1) {
        throw new InvalidOperationException(
            "Cannot retrieve the delegation state " +
             "for paths that contain '/'.");
    }

    AdministrationModule currentModule =
        ManagementUnit.Administration.Modules[Name];

    // Get the management administration configuration 
    // for the delegated path.
    ManagementAdministrationConfiguration
        delegatedAdministration =
        ManagementUnit.Administration.GetDelegatedScope(path);
    AdministrationModuleCollection delegatedModules
        = delegatedAdministration.Modules;

    if ((state == ParentDelgateState) ||
        (state == ReadWriteDelegationState) ||
        (state == ReadOnlyDelegationState)) {

        delegatedModules.Add(currentModule.Name);
    } else if (state == NoneDelegationState) {
        if (currentModule != null) {
            delegatedModules.Remove(currentModule.Name);
        }
    }
} 

설명

이 필드의 값은 DelegationState "ReadWrite" 모드, "ReadWriteDelegationStateText"의 지역화된 텍스트 및 "ReadWriteDelegationStateToolTip"에 대한 지역화된 설명이 있는 입니다.

적용 대상