SimpleDelegatedModuleProvider Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SimpleDelegatedModuleProvider class.
protected:
SimpleDelegatedModuleProvider();
protected SimpleDelegatedModuleProvider ();
Protected Sub New ()
Examples
The following example shows a class that is derived from the SimpleDelegatedModuleProvider class.
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());
Remarks
This class does not have an explicit constructor; it is provided by the compiler.