System::Xml::Schema::XmlAtomicValue::ValueAs method

XmlAtomicValue::ValueAs 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
ParameterTypeDescription
typeconst TypeInfo&The type to return the validated XML element or attribute’s value as.
nsResolverSharedPtr<IXmlNamespaceResolver>The IXmlNamespaceResolver object used to resolve namespace prefixes.

ReturnValue

The value of the validated XML element or attribute as the type requested.

See Also