共用方式為


XsltProcessor 類別

定義

提供 Xslt 處理器所需的方法。

public ref class XsltProcessor sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Xml.Xsl.IXsltProcessorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XsltProcessor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Data.Xml.Xsl.IXsltProcessorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class XsltProcessor final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Xml.Xsl.IXsltProcessorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XsltProcessor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Data.Xml.Xsl.IXsltProcessorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class XsltProcessor
function XsltProcessor(document)
Public NotInheritable Class XsltProcessor
繼承
Object Platform::Object IInspectable XsltProcessor
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

XsltProcessor(XmlDocument)

從所提供的檔建立新的 XsltProcessor 物件。

方法

TransformToDocument(IXmlNode)

處理節點及其子系,並傳回產生的 XmlDocument

TransformToString(IXmlNode)

處理節點及其子系,並傳回產生的字串轉換。

適用於

另請參閱