XmlDsigEnvelopedSignatureTransform.GetOutput 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳當前 XmlDsigEnvelopedSignatureTransform 物件的輸出。
多載
| 名稱 | Description |
|---|---|
| GetOutput() |
回傳當前 XmlDsigEnvelopedSignatureTransform 物件的輸出。 |
| GetOutput(Type) |
回傳目前 XmlDsigEnvelopedSignatureTransform 型別 XmlNodeList為 的物件的輸出。 |
GetOutput()
回傳當前 XmlDsigEnvelopedSignatureTransform 物件的輸出。
public:
override System::Object ^ GetOutput();
public override object GetOutput();
override this.GetOutput : unit -> obj
Public Overrides Function GetOutput () As Object
傳回
目前物件的 XmlDsigEnvelopedSignatureTransform 輸出。
例外狀況
包含的 XML 文件為 null。
範例
以下程式碼範例示範如何使用此 GetOutput 方法。 此程式碼範例是本類別更大範例 XmlDsigEnvelopedSignatureTransform 的一部分。
object outputObject = xmlTransform.GetOutput();
Dim outputObject As Object = xmlTransform.GetOutput()
備註
回傳物件的類型必須是 XmlNodeList。
適用於
GetOutput(Type)
回傳目前 XmlDsigEnvelopedSignatureTransform 型別 XmlNodeList為 的物件的輸出。
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 是此參數唯一有效的類型。
傳回
目前 XmlDsigEnvelopedSignatureTransform 型別 XmlNodeList為 的物件的輸出。
例外狀況
參數 type 不是 XmlNodeList 物件。
範例
以下程式碼範例示範如何使用此 GetOutput 方法取得當前 XmlDsigEnvelopedSignatureTransform 物件的輸出。 此程式碼範例是本類別更大範例 XmlDsigEnvelopedSignatureTransform 的一部分。
Type xmlDocumentType = typeof(System.Xml.XmlDocument);
XmlDocument xmlDocumentOutput = (XmlDocument)
xmlTransform.GetOutput(xmlDocumentType);
Dim xmlDocumentType As Type
xmlDocumentType = GetType(System.Xml.XmlDocument)
Dim xmlDocumentOutput As XmlDocument
xmlDocumentOutput = CType( _
xmlTransform.GetOutput(xmlDocumentType), _
XmlDocument)
備註
回傳物件的類型必須是 XmlNodeList。