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)

property ICredentials^ Credentials {
	virtual ICredentials^ get() override;
	virtual void set(ICredentials^ value) override;

Property Value

Type: System.Net::ICredentials^

An ICredentials that contains the authentication credentials that are associated with this request. The default is null.

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.

.NET Framework
Available since 1.1
Return to top