SimpleDelegatedModuleProvider Konstruktor
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der SimpleDelegatedModuleProvider-Klasse.
protected:
SimpleDelegatedModuleProvider();
protected SimpleDelegatedModuleProvider();
Protected Sub New ()
Beispiele
Das folgende Beispiel zeigt eine Klasse, die von der SimpleDelegatedModuleProvider -Klasse abgeleitet ist.
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());
Hinweise
Diese Klasse verfügt nicht über einen expliziten Konstruktor. Sie wird vom Compiler bereitgestellt.