Compartilhar via


SimpleDelegatedModuleProvider Construtor

Definição

Inicializa uma nova instância da classe SimpleDelegatedModuleProvider.

protected:
 SimpleDelegatedModuleProvider();
protected SimpleDelegatedModuleProvider ();
Protected Sub New ()

Exemplos

O exemplo a seguir mostra uma classe derivada da SimpleDelegatedModuleProvider classe .

public class MySimpDelegateModPrvdr : SimpleDelegatedModuleProvider {

    private const string ReadOnlyDelegationMode = "ReadOnly";
    private const string ReadWriteDelegationMode = "ReadWrite";
    private const string NoneDelegationMode = "None";
    private const string ParentDelegationMode = "Parent";

    public static new readonly DelegationState ReadOnlyDelegationState =
   new DelegationState(ReadOnlyDelegationMode,
   "Read Only", "Lock feature configuration"); 

    public static new readonly DelegationState ReadWriteDelegationState =
    new DelegationState(ReadWriteDelegationMode,
    "Read/Write", "Unlock feature configuration"); 

    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 static readonly DelegationState ParentDelgateState =
    new DelegationState(ParentDelegationMode,
    "Reset to Inherited",
    "Set the configuration lock state for a feature " +
    "to the inherited state");

    public override bool SupportsDelegation {
        get {
            return true;
        }
    } 
MySimpDelegateModPrvdr msdmp = new MySimpDelegateModPrvdr();

Trace.WriteLine("SupportsDelegation: " +
    msdmp.SupportsDelegation.ToString()); 

Comentários

Essa classe não tem um construtor explícito; ele é fornecido pelo compilador.

Aplica-se a