XsltSettings.Default 屬性

定義

取得具有預設值的 XsltSettings 物件。 已停用 XSLT document() 函式和內嵌腳本區塊的支援。

public:
 static property System::Xml::Xsl::XsltSettings ^ Default { System::Xml::Xsl::XsltSettings ^ get(); };
public static System.Xml.Xsl.XsltSettings Default { get; }
static member Default : System.Xml.Xsl.XsltSettings
Public Shared ReadOnly Property Default As XsltSettings

屬性值

XsltSettingsEnableDocumentFunction 屬性設為 falseEnableScript 物件。

範例

下列範例會載入具有預設 XSLT 設定的樣式表單。

// Create the XslCompiledTransform object and load the style sheet.
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load("sort.xsl", XsltSettings.Default, new XmlUrlResolver());
' Create the XslCompiledTransform object and load the style sheet.
Dim xslt As New XslCompiledTransform()
xslt.Load("sort.xsl", XsltSettings.Default, New XmlUrlResolver())

適用於

另請參閱