Mono Class Library: System.Xml.XmlResolver Overview | Members

System.Xml.XmlResolver.Credentials Property

Sets the credentials used to authenticate Web requests. [Edit]

public abstract System.Net.ICredentials Credentials { set; }

Value

A System.Net.ICredentials instance containing the credentials. [Edit]

Remarks

Operation

This property sets the credentials used to authenticate Web requests. If the virtual directory is configured to allow anonymous access, this property does not need to be set. Otherwise, the credentials of the user must be supplied. If credentials are needed but not supplied, the System.Xml.XmlResolver class uses default credentials (System.Net.CredentialCache.DefaultCredentials).

This property is write-only.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Example

See XmlUrlResolver.Credentials for an example using this property.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0