SqlFeatures SqlFeatures SqlFeatures SqlFeatures Enum

定义

指定要使用 SqlServices 类提供的方法安装或移除的 ASP.Net 功能。Specifies the ASP.Net features to install or remove using the methods provided by the SqlServices class.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class SqlFeatures
[System.Flags]
public enum SqlFeatures
type SqlFeatures = 
Public Enum SqlFeatures
继承
属性

字段

All All All All 1073741855

所有功能。All features.

Membership Membership Membership Membership 1

成员资格功能。The membership feature.

None None None None 0

无功能。No features.

Personalization Personalization Personalization Personalization 8

个性化功能。The personalization feature.

Profile Profile Profile Profile 2

配置文件功能。The profile feature.

RoleManager RoleManager RoleManager RoleManager 4

角色管理器功能。The role manager feature.

SqlWebEventProvider SqlWebEventProvider SqlWebEventProvider SqlWebEventProvider 16

Web 事件提供程序功能。The Web event provider feature.

示例

下面的代码示例演示如何使用SqlFeatures枚举,其中Install(String, SqlFeatures, String)方法的SqlServices类。The following code example shows how to use the SqlFeatures enumeration with the Install(String, SqlFeatures, String) method of the SqlServices class.

// Install membership and personalization.
SqlServices.Install(database,
	SqlFeatures.Membership &
	SqlFeatures.Personalization,
	connectionString);
' Install membership and personalization.
SqlServices.Install(database, _
    SqlFeatures.Membership And _
    SqlFeatures.Personalization, _
    connectionString)

注解

此枚举有FlagsAttribute,这就意味着你可以选择两个或多个功能通过将它们与组合&(和) 运算符 (And运算符在 Visual Basic 中的)。This enumeration has a FlagsAttribute, which means you can select two or more features by combining them with the & (and) operator (the And operator in Visual Basic).

适用于

另请参阅