Skip to main content
AtomPubClient.AtomPubClient(PasswordCredential) constructor

Applies to Windows and Windows Phone

Creates a new AtomPubClient object with the credential to use when making requests to the server. Initially, a 'username/password' tuple. However, for domain credentials, the username must be in 'domain\user form'.

Syntax


var atomPubClient = new Windows.Web.AtomPub.AtomPubClient(serverCredential);

public AtomPubClient(
  PasswordCredential serverCredential
)

Public Sub New (
  serverCredential As PasswordCredential 
)

public:
AtomPubClient(
  PasswordCredential^ serverCredential
)

Parameters

serverCredential

Type: PasswordCredential

The specified security credentials.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.AtomPub
Windows::Web::AtomPub [C++]

Metadata

Windows.winmd

See also

AtomPubClient
AtomPubClient