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)

'Declaration
Public Overrides Property Credentials As ICredentials
'Usage
Dim instance As FileWebRequest
Dim value As ICredentials

value = instance.Credentials

instance.Credentials = value
/** @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)

Not applicable.

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 Server 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 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, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft