XsltContext XsltContext XsltContext XsltContext Class

定義

封裝可延伸樣式表語言轉換 (XSLT) 處理器的目前執行內容,可讓 XML 路徑語言 (XPath) 解析函式、參數和 XPath 運算式中的命名空間。Encapsulates the current execution context of the Extensible Stylesheet Language for Transformations (XSLT) processor allowing XML Path Language (XPath) to resolve functions, parameters, and namespaces within XPath expressions.

public ref class XsltContext abstract : System::Xml::XmlNamespaceManager
public abstract class XsltContext : System.Xml.XmlNamespaceManager
type XsltContext = class
    inherit XmlNamespaceManager
Public MustInherit Class XsltContext
Inherits XmlNamespaceManager
繼承
衍生

建構函式

XsltContext() XsltContext() XsltContext() XsltContext()

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

XsltContext(NameTable) XsltContext(NameTable) XsltContext(NameTable) XsltContext(NameTable)

使用指定的 XsltContext 初始化 NameTable 類別的新執行個體。Initializes a new instance of the XsltContext class with the specified NameTable.

屬性

DefaultNamespace DefaultNamespace DefaultNamespace DefaultNamespace

取得預設命名空間的命名空間 URI。Gets the namespace URI for the default namespace.

(Inherited from XmlNamespaceManager)
NameTable NameTable NameTable NameTable

取得與這個物件相關的 XmlNameTableGets the XmlNameTable associated with this object.

(Inherited from XmlNamespaceManager)
Whitespace Whitespace Whitespace Whitespace

在衍生類別中覆寫時,取得值,表示是否要在輸出中包含空白區 (White Space) 節點。When overridden in a derived class, gets a value indicating whether to include white space nodes in the output.

方法

AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String) AddNamespace(String, String)

將指定的命名空間加入至集合中。Adds the given namespace to the collection.

(Inherited from XmlNamespaceManager)
CompareDocument(String, String) CompareDocument(String, String) CompareDocument(String, String) CompareDocument(String, String)

在衍生類別中覆寫時,根據 XSLT 處理器 (即 XslTransform 類別) 載入兩個文件的順序,比較它們的基底統一資源識別元 (URI)。When overridden in a derived class, compares the base Uniform Resource Identifiers (URIs) of two documents based upon the order the documents were loaded by the XSLT processor (that is, the XslTransform class).

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回用於逐一查看 XmlNamespaceManager 中命名空間的列舉值。Returns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.

(Inherited from XmlNamespaceManager)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope) GetNamespacesInScope(XmlNamespaceScope)

取得命名空間名稱集合,會根據前置詞索引,可用於列舉目前在範圍中的命名空間。Gets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.

(Inherited from XmlNamespaceManager)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
HasNamespace(String) HasNamespace(String) HasNamespace(String) HasNamespace(String)

取得值,表示提供的前置詞是否具有針對目前推入的範圍中定義的命名空間。Gets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.

(Inherited from XmlNamespaceManager)
LookupNamespace(String) LookupNamespace(String) LookupNamespace(String) LookupNamespace(String)

取得指定前置詞的命名空間 URI。Gets the namespace URI for the specified prefix.

(Inherited from XmlNamespaceManager)
LookupPrefix(String) LookupPrefix(String) LookupPrefix(String) LookupPrefix(String)

尋找為指定命名空間 URI 宣告的前置詞。Finds the prefix declared for the given namespace URI.

(Inherited from XmlNamespaceManager)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
PopScope() PopScope() PopScope() PopScope()

將命名空間範圍自堆疊取出。Pops a namespace scope off the stack.

(Inherited from XmlNamespaceManager)
PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator) PreserveWhitespace(XPathNavigator)

在衍生類別中覆寫時,會針對指定的內容來評估是否保留或刪除空白區節點。When overridden in a derived class, evaluates whether to preserve white space nodes or strip them for the given context.

PushScope() PushScope() PushScope() PushScope()

將命名空間範圍推入至堆疊。Pushes a namespace scope onto the stack.

(Inherited from XmlNamespaceManager)
RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String) RemoveNamespace(String, String)

移除指定前置詞的指定命名空間。Removes the given namespace for the given prefix.

(Inherited from XmlNamespaceManager)
ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[]) ResolveFunction(String, String, XPathResultType[])

在衍生類別中覆寫時,會解析函式參考並傳回表示函式的 IXsltContextFunctionWhen overridden in a derived class, resolves a function reference and returns an IXsltContextFunction representing the function. IXsltContextFunction 用於在執行時間取得函式的傳回值。The IXsltContextFunction is used at execution time to get the return value of the function.

ResolveVariable(String, String) ResolveVariable(String, String) ResolveVariable(String, String) ResolveVariable(String, String)

在衍生類別中覆寫時,會解析變數參考並傳回表示變數的 IXsltContextVariableWhen overridden in a derived class, resolves a variable reference and returns an IXsltContextVariable representing the variable.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

擴充方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於