System::Xml::XPath::XPathItem::ValueAs method
XPathItem::ValueAs(const TypeInfo&) method
返回该项的值,作为指定的类型。
virtual SharedPtr<Object> System::Xml::XPath::XPathItem::ValueAs(const TypeInfo &returnType)
| 参数 | 类型 | 描述 |
|---|---|---|
| returnType | const TypeInfo& | 返回项目值的类型。 |
ReturnValue
项目的值为请求的类型。
另见
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class XPathItem
- Namespace System::Xml::XPath
- Library Aspose.Font for C++
XPathItem::ValueAs(const TypeInfo&, SharedPtr<IXmlNamespaceResolver>) method
当在派生类中重写时,使用指定的 IXmlNamespaceResolver 对象解析命名空间前缀,以返回项目的值,类型为指定的类型。
virtual SharedPtr<Object> System::Xml::XPath::XPathItem::ValueAs(const TypeInfo &returnType, SharedPtr<IXmlNamespaceResolver> nsResolver)=0
| 参数 | 类型 | 描述 |
|---|---|---|
| returnType | const TypeInfo& | 返回项目值的类型。 |
| nsResolver | SharedPtr<IXmlNamespaceResolver> | 用于解析命名空间前缀的 IXmlNamespaceResolver 对象。 |
ReturnValue
项目的值为请求的类型。
另见
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class IXmlNamespaceResolver
- Class XPathItem
- Namespace System::Xml::XPath
- Library Aspose.Font for C++