This documentation is archived and is not being maintained.

PackWebRequest.Credentials Property

Gets or sets the authentication credentials.

Namespace: System.IO.Packaging
Assembly: PresentationCore (in presentationcore.dll)

public override ICredentials Credentials { get; set; }
/** @property */
public ICredentials get_Credentials ()

/** @property */
public void set_Credentials (ICredentials value)

public override function get Credentials () : ICredentials

public override function set Credentials (value : ICredentials)

You cannot use this property in XAML.

Property Value

The authentication credentials to use with the request.

Requests to the package cache use their own cached credentials.

The Credentials property is shared with the inner WebRequest (GetInnerRequest).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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
Show: