FileWebRequest.Credentials Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

override Credentials : ICredentials with get, set

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