FileWebRequest.UseDefaultCredentials Property


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

This API supports the product infrastructure and is not intended to be used directly from your code.

Always throws a NotSupportedException.

Namespace:   System.Net
Assembly:  System (in System.dll)

Public Overrides Property UseDefaultCredentials As Boolean

Property Value

Type: System.Boolean

Always throws a NotSupportedException.

Exception Condition

Default credentials are not supported for file Uniform Resource Identifiers (URIs).

The UseDefaultCredentials property is provided only for compatibility with other implementations of the WebRequest and WebResponse classes. There is no reason to use UseDefaultCredentials.

.NET Framework
Available since 2.0
Return to top