Transform 類別

定義

表示抽象基底類別,可用於 XML 數位簽章的所有 <Transform> 項目都是自其衍生。Represents the abstract base class from which all <Transform> elements that can be used in an XML digital signature derive.

public ref class Transform abstract
public abstract class Transform
type Transform = class
Public MustInherit Class Transform
繼承
Transform
衍生

備註

執行 XML 簽署和驗證時, <Transform> 元素會描述簽署者如何轉換已簽署的資料物件。When performing XML signing and verification, the <Transform> element describes how the signer transformed the data object that was signed. 檔的驗證器接著會使用專案 <Transform> ,以相同的方式轉換已簽署的資料。The verifier of a document then uses the <Transform> element to transform the signed data in the same manner. 如果驗證器無法以相同方式轉換已簽署的資料,就無法驗證檔。If the verifier cannot transform the signed data in the same manner, the document cannot be verified.

Transform當您需要將一或多個轉換物件新增至加密的 xml 檔或已簽署的 xml 檔時,請使用衍生自類別的類別。Use a class that derives from the Transform class whenever you need to add one or more transform objects to an encrypted XML document or to a signed XML document.

如需元素的詳細資訊 <Transform> ,請參閱 W3C 網站上提供的 XMLDSIG 規格XML 加密規格For more information about the <Transform> element, see the XMLDSIG specification or the XML encryption specification, which are available on the W3C website.

建構函式

Transform()

初始化 Transform 類別的新執行個體。Initializes a new instance of the Transform class.

屬性

Algorithm

取得或設定統一資源識別元 (URI),它識別了目前轉換所執行的演算法。Gets or sets the Uniform Resource Identifier (URI) that identifies the algorithm performed by the current transform.

Context

取得或設定 XmlElement 物件,表示目前 Transform 物件在其下執行的文件內容。Gets or sets an XmlElement object that represents the document context under which the current Transform object is running.

InputTypes

在衍生類別中覆寫時,取得型別的陣列,這些型別是目前 LoadInput(Object) 物件 Transform 方法的有效輸入。When overridden in a derived class, gets an array of types that are valid inputs to the LoadInput(Object) method of the current Transform object.

OutputTypes

在衍生類別中覆寫時,取得型別的陣列,這些型別為目前 GetOutput()Transform 方法的可能輸出。When overridden in a derived class, gets an array of types that are possible outputs from the GetOutput() methods of the current Transform object.

PropagatedNamespaces

取得或設定 Hashtable 物件,內含傳送至簽章的命名空間。Gets or sets a Hashtable object that contains the namespaces that are propagated into the signature.

Resolver

設定目前的 XmlResolver 物件。Sets the current XmlResolver object.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetDigestedOutput(HashAlgorithm)

在衍生類別中覆寫時,傳回與 Transform 物件關聯的摘要。When overridden in a derived class, returns the digest associated with a Transform object.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetInnerXml()

在衍生類別中覆寫時,則傳回 Transform 物件 (適合納入為 XMLDSIG <Transform> 項目的子項目) 參數的 XML 表示。When overridden in a derived class, returns an XML representation of the parameters of the Transform object that are suitable to be included as subelements of an XMLDSIG <Transform> element.

GetOutput()

在衍生類別中覆寫時,傳回目前 Transform 物件的輸出。When overridden in a derived class, returns the output of the current Transform object.

GetOutput(Type)

在衍生類別中覆寫時,傳回目前特定型別 Transform 物件的輸出。When overridden in a derived class, returns the output of the current Transform object of the specified type.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetXml()

傳回目前 Transform 物件的 XML 表示。Returns the XML representation of the current Transform object.

LoadInnerXml(XmlNodeList)

在衍生類別中覆寫時,將指定的 XmlNodeList 物件剖析為 <Transform> 項目的轉換特定內容,並將目前 Transform 物件的內部狀態設定成與 <Transform> 項目相符。When overridden in a derived class, parses the specified XmlNodeList object as transform-specific content of a <Transform> element and configures the internal state of the current Transform object to match the <Transform> element.

LoadInput(Object)

在衍生類別中覆寫時,將指定輸入載入目前的 Transform 物件。When overridden in a derived class, loads the specified input into the current Transform object.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於