ChangeType()

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)

Arguments

ParameterTypeDescription
valueSharedPtr<Object>The input value to convert to the specified type.
targetTypeconst TypeInfo&The target type to convert the input value to.

Return Value

The converted input value.

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)

Arguments

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.

Return Value

The converted input value.

See Also