Assembly: System (in system.dll)
/** @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 Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.