다음을 통해 공유


SimpleDelegatedModuleProvider.NoneDelegationState 필드

정의

위임 상태를 지정하지 않습니다.

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

필드 값

예제

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

public static new readonly DelegationState NoneDelegationState =
new DelegationState(NoneDelegationMode,
"Not Delegated",
"Lock the feature configuration and hide " +
"the feature in site and/or application connections"); 
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 "None" 모드, "NoneDelegationStateText"의 지역화된 텍스트 및 "NoneDelegationStateToolTip"에 대한 지역화된 설명이 있는 입니다.

적용 대상