Mono Class Library: System.Xml.XmlResolver Overview | MembersSystem.Xml.XmlResolver.Credentials Property |
Sets the credentials used to authenticate Web requests. [Edit]
|
A System.Net.ICredentials instance containing the credentials. [Edit]
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]
See XmlUrlResolver.Credentials for an example using this property.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0