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)

处理节点及其子级,并返回生成的字符串转换。

适用于

另请参阅