ValueAs()
Contents
[
Hide
]XmlAtomicValue::ValueAs(const TypeInfo&, SharedPtr<IXmlNamespaceResolver>) method
Returns the validated XML element or attribute’s value as the type specified using the IXmlNamespaceResolver object specified to resolve namespace prefixes.
SharedPtr<Object> System::Xml::Schema::XmlAtomicValue::ValueAs(const TypeInfo &type, SharedPtr<IXmlNamespaceResolver> nsResolver) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| type | const TypeInfo& | The type to return the validated XML element or attribute’s value as. |
| nsResolver | SharedPtr<IXmlNamespaceResolver> | The IXmlNamespaceResolver object used to resolve namespace prefixes. |
Return Value
The value of the validated XML element or attribute as the type requested.
Exceptions
| Exception | Description |
|---|---|
| FormatException | The validated XML element or attribute’s value is not in the correct format for the target type. |
| InvalidCastException | The attempted cast is not valid. |
| OverflowException | The attempted cast resulted in an overflow. |
See Also
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class IXmlNamespaceResolver
- Class XmlAtomicValue
- Namespace System::Xml::Schema
- Library Aspose.Slides