SqlFeatures Enumeration

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)

public enum SqlFeatures
/** @attribute FlagsAttribute() */ 
public enum SqlFeatures
public enum SqlFeatures

 Member nameDescription
AllAll features. 
MembershipThe membership feature. 
NoneNo features. 
PersonalizationThe personalization feature. 
ProfileThe profile feature. 
RoleManagerThe role manager feature. 
SqlWebEventProviderThe 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.
	SqlFeatures.Membership &

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions