Click to Rate and Give Feedback
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
UserNamePasswordClientCredential Class

Updated: November 2007

Represents a client credential based on user name and password.

Namespace:  System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Visual Basic (Declaration)
Public NotInheritable Class UserNamePasswordClientCredential
Visual Basic (Usage)
Dim instance As UserNamePasswordClientCredential
C#
public sealed class UserNamePasswordClientCredential
Visual C++
public ref class UserNamePasswordClientCredential sealed
J#
public final class UserNamePasswordClientCredential
JScript
public final class UserNamePasswordClientCredential

This class enables the user to configure the user name and password for a WCFChannelFactory credential when using user name/password authentication. If the channel factory's binding is not configured to use user name/password-based authentication, the user name and password are not used. If the channel factory's binding is configured to use federated security that requires getting an issued token from a security token service, the user name and password are also presented to the security token service if it requires user name/password authentication.

System..::.Object
  System.ServiceModel.Security..::.UserNamePasswordClientCredential
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows Vista, Windows XP SP2, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker