Login.MembershipProvider 属性

定义

获取或设置控件使用的成员资格数据提供程序的名称。Gets or sets the name of the membership data provider used by the control.

public:
 virtual property System::String ^ MembershipProvider { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string MembershipProvider { get; set; }
member this.MembershipProvider : string with get, set
Public Overridable Property MembershipProvider As String

属性值

控件使用的成员资格数据提供程序的名称。The name of the membership data provider used by the control. 默认为 EmptyThe default is Empty.

属性

注解

MembershipProvider 属性包含为 Login 控件提供身份验证信息的数据提供程序的名称。The MembershipProvider property contains the name of the data provider that provides the authentication information for the Login control. 有效的成员资格提供程序名称是在应用程序的 Machine.config 或 web.config 文件中的 <membership> 元素中定义的。Valid membership provider names are defined in the <membership> element in your application's Machine.config or Web.config file.

如果未设置 MembershipProvider 属性,它将始终返回 EmptyIf you do not set the MembershipProvider property, it will always return Empty.

有关详细信息,请参阅 Membership 类。For more information, see the Membership class.

无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttributeASP.NET 主题和外观For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

适用于

另请参阅