Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

UserNamePasswordServiceCredential.MembershipProvider Property

Gets or sets the membership provider.

Namespace:  System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public MembershipProvider MembershipProvider { get; set; }

Property Value

Type: System.Web.Security.MembershipProvider
The MembershipProvider for this service. The default is the SqlMembershipProvider.

An attempt is made to set this property when the credential is read-only.

For MembershipProvider mode, the service uses MembershipProvider for user name/password authentication by calling the ValidateUser method.


The UserNamePasswordValidationMode property must be set to MembershipProvider for the MembershipProvider to take effect. When the MembershipProvider property is set and the UserNamePasswordValidationMode property is not, WCF uses Windows authentication and ignores the value of the MembershipProvider property.

If the UserNamePasswordValidationMode property is set to MembershipProvider and the MembershipProvider property is not set to a value, the default is the SqlMembershipProvider class.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft. All rights reserved.