Share via


XmlDsigXPathTransform.GetOutput 方法

定义

返回当前 XmlDsigXPathTransform 对象的输出。

重载

GetOutput()

返回当前 XmlDsigXPathTransform 对象的输出。

GetOutput(Type)

返回 XmlNodeList 类型的当前 XmlDsigXPathTransform 对象的输出。

注解

GetOutput使用 方法检索XmlNodeList包含 XPath 转换的 XML 表示形式的 对象。

GetOutput()

Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs

返回当前 XmlDsigXPathTransform 对象的输出。

public:
 override System::Object ^ GetOutput();
public override object GetOutput ();
override this.GetOutput : unit -> obj
Public Overrides Function GetOutput () As Object

返回

当前 XmlDsigXPathTransform 对象的输出。

示例

下面的代码示例演示如何使用 GetOutput 方法检索当前 XmlDsigXPathTransform 对象的输出。 此代码示例是为 XmlDsigXPathTransform 类提供的一个更大示例的一部分。

object outputObject = xmlTransform.GetOutput();
Dim outputObject As Object = xmlTransform.GetOutput()

注解

返回对象的类型必须为 XmlNodeList

GetOutput使用 方法检索XmlNodeList包含 XPath 转换的 XML 表示形式的 对象。

适用于

GetOutput(Type)

Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs
Source:
XmlDsigXPathTransform.cs

返回 XmlNodeList 类型的当前 XmlDsigXPathTransform 对象的输出。

public:
 override System::Object ^ GetOutput(Type ^ type);
public override object GetOutput (Type type);
override this.GetOutput : Type -> obj
Public Overrides Function GetOutput (type As Type) As Object

参数

type
Type

要返回的输出的类型。 XmlNodeList 是此参数的唯一有效类型。

返回

XmlNodeList 类型的当前 XmlDsigXPathTransform 对象的输出。

例外

type 参数不是一个 XmlNodeList 对象。

示例

下面的代码示例演示如何使用 GetOutput 方法检索当前 XmlDsigXPathTransform 对象的输出。 此代码示例是为 XmlDsigXPathTransform 类提供的一个更大示例的一部分。

Type xmlDocumentType = typeof(System.Xml.XmlDocument);
XmlDocument xmlDocumentOutput = (XmlDocument)
    xmlTransform.GetOutput(xmlDocumentType);
Dim xmlDocumentType As Type = GetType(System.Xml.XmlDocument)
Dim xmlDocumentOutput As XmlDocument = CType(xmlTransform.GetOutput(xmlDocumentType), XmlDocument)

注解

返回对象的类型必须为 XmlNodeList

GetOutput使用 方法检索XmlNodeList包含 XPath 转换的 XML 表示形式的 对象。

适用于