Edit

Kongsi melalui


FileWebRequest.Credentials Property

Definition

Gets or sets the credentials that are associated with this request. This property is reserved for future use.

public:
 virtual property System::Net::ICredentials ^ Credentials { System::Net::ICredentials ^ get(); void set(System::Net::ICredentials ^ value); };
public override System.Net.ICredentials? Credentials { get; set; }
public override System.Net.ICredentials Credentials { get; set; }
member this.Credentials : System.Net.ICredentials with get, set
Public Overrides Property Credentials As ICredentials

Property Value

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

Remarks

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.

Applies to