Export (0) Print
Expand All

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
[C#]
public override ICredentials Credentials {get; set;}
[C++]
public: __property ICredentials* get_Credentials();
public: __property void set_Credentials(ICredentials*);
[JScript]
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).

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft