SqlFeatures Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the ASP.Net features to install or remove using the methods provided by the SqlServices class.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

[FlagsAttribute]
public enum SqlFeatures

Member nameDescription
All

All features.

Membership

The membership feature.

None

No features.

Personalization

The personalization feature.

Profile

The profile feature.

RoleManager

The role manager feature.

SqlWebEventProvider

The Web event provider feature.

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).

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);

.NET Framework
Available since 2.0
Return to top
Show: