次の方法で共有


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" です。

適用対象