Assembly: System (in system.dll)
'Declaration Public Overrides Property Credentials As ICredentials 'Usage Dim instance As FileWebRequest Dim value As ICredentials value = instance.Credentials instance.Credentials = value
/** @property */ public ICredentials get_Credentials () /** @property */ public void set_Credentials (ICredentials value)
public override function get Credentials () : ICredentials public override function set Credentials (value : ICredentials)
Property ValueAn ICredentials that contains the authentication credentials that are 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.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.