XmlNamespaceManager.RemoveNamespace(String, String) XmlNamespaceManager.RemoveNamespace(String, String) XmlNamespaceManager.RemoveNamespace(String, String) XmlNamespaceManager.RemoveNamespace(String, String) Method

定義

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

public:
 virtual void RemoveNamespace(System::String ^ prefix, System::String ^ uri);
public virtual void RemoveNamespace (string prefix, string uri);
abstract member RemoveNamespace : string * string -> unit
override this.RemoveNamespace : string * string -> unit
Public Overridable Sub RemoveNamespace (prefix As String, uri As String)

參數

prefix
String String String String

命名空間的前置詞The prefix for the namespace

uri
String String String String

指定的前置詞中要移除的命名空間。The namespace to remove for the given prefix. 命名空間由目前的命名空間範圍移除。The namespace removed is from the current namespace scope. 忽略目前範圍以外的命名空間。Namespaces outside the current scope are ignored.

例外狀況

prefixuri 的值為 nullThe value of prefix or uri is null.

適用於

另請參閱