Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

[FlagsAttribute]
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.
SqlServices.Install(database,
	SqlFeatures.Membership &
	SqlFeatures.Personalization,
	connectionString);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft