System::Xml::XPath::XPathItem::ValueAs method

XPathItem::ValueAs(const TypeInfo&) method

返回该项的值,作为指定的类型。

virtual SharedPtr<Object> System::Xml::XPath::XPathItem::ValueAs(const TypeInfo &returnType)
参数类型描述
returnTypeconst TypeInfo&返回项目值的类型。

ReturnValue

项目的值为请求的类型。

另见

XPathItem::ValueAs(const TypeInfo&, SharedPtr<IXmlNamespaceResolver>) method

当在派生类中重写时,使用指定的 IXmlNamespaceResolver 对象解析命名空间前缀,以返回项目的值,类型为指定的类型。

virtual SharedPtr<Object> System::Xml::XPath::XPathItem::ValueAs(const TypeInfo &returnType, SharedPtr<IXmlNamespaceResolver> nsResolver)=0
参数类型描述
returnTypeconst TypeInfo&返回项目值的类型。
nsResolverSharedPtr<IXmlNamespaceResolver>用于解析命名空间前缀的 IXmlNamespaceResolver 对象。

ReturnValue

项目的值为请求的类型。

另见