Export (0) Print
Expand All

FileWebRequest.Credentials Property

Gets or sets the credentials that are associated with this request. This property is reserved for future use.

Namespace: System.Net
Assembly: System (in system.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)

Property Value

An ICredentials that contains the authentication credentials that are associated with this request. The default is a null reference (Nothing in Visual Basic).

Because the FileWebRequest class does not authenticate requests for files from the local file system, it ignores the contents, if any, of the Credentials property. Authentication for FileWebRequest is handled by the access control lists for the file resource in the underlying file system.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft