System::Xml::Schema::XmlSchemaDatatype::ChangeType method

XmlSchemaDatatype::ChangeType(SharedPtr<Object>, const TypeInfo&) method

Converts the value specified, whose type is one of the valid representations of the XML schema type represented by the XmlSchemaDatatype, to the run-time type specified.

virtual SharedPtr<Object> System::Xml::Schema::XmlSchemaDatatype::ChangeType(SharedPtr<Object> value, const TypeInfo &targetType)
ParameterTypeDescription
valueSharedPtr<Object>The input value to convert to the specified type.
targetTypeconst TypeInfo&The target type to convert the input value to.

ReturnValue

The converted input value.

See Also

XmlSchemaDatatype::ChangeType(SharedPtr<Object>, const TypeInfo&, SharedPtr<IXmlNamespaceResolver>) method

Converts the value specified, whose type is one of the valid representations of the XML schema type represented by the XmlSchemaDatatype, to the run-time type specified using the IXmlNamespaceResolver if the XmlSchemaDatatype represents the xs:QName type or a type derived from it.

virtual SharedPtr<Object> System::Xml::Schema::XmlSchemaDatatype::ChangeType(SharedPtr<Object> value, const TypeInfo &targetType, SharedPtr<IXmlNamespaceResolver> namespaceResolver)
ParameterTypeDescription
valueSharedPtr<Object>The input value to convert to the specified type.
targetTypeconst TypeInfo&The target type to convert the input value to.
namespaceResolverSharedPtr<IXmlNamespaceResolver>An IXmlNamespaceResolver used for resolving namespace prefixes. This is only of use if the XmlSchemaDatatype represents the xs:QName type or a type derived from it.

ReturnValue

The converted input value.

See Also