This documentation is archived and is not being maintained.

FileWebRequest.Credentials Property

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

[Visual Basic]
Overrides Public Property Credentials As ICredentials
public override ICredentials Credentials {get; set;}
public: __property ICredentials* get_Credentials();
public: __property void set_Credentials(ICredentials*);
public override function get Credentials() : ICredentials;
public override function set Credentials(ICredentials);

Property Value

An ICredentials that contains the authentication credentials 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

FileWebRequest Class | FileWebRequest Members | System.Net Namespace