SimpleDelegatedModuleProvider 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SimpleDelegatedModuleProvider 类的新实例。
protected:
SimpleDelegatedModuleProvider();
protected SimpleDelegatedModuleProvider ();
Protected Sub New ()
示例
以下示例演示派生自 类的 SimpleDelegatedModuleProvider 类。
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());
注解
此类没有显式构造函数;它由编译器提供。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈