XPathNavigator.GetAttribute(String, String) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den Wert des Attributs mit dem angegebenen lokalen Namen und Namespace-URI ab.
public:
virtual System::String ^ GetAttribute(System::String ^ localName, System::String ^ namespaceURI);
public:
abstract System::String ^ GetAttribute(System::String ^ localName, System::String ^ namespaceURI);
public virtual string GetAttribute(string localName, string namespaceURI);
public abstract string GetAttribute(string localName, string namespaceURI);
abstract member GetAttribute : string * string -> string
override this.GetAttribute : string * string -> string
abstract member GetAttribute : string * string -> string
Public Overridable Function GetAttribute (localName As String, namespaceURI As String) As String
Public MustOverride Function GetAttribute (localName As String, namespaceURI As String) As String
Parameter
- localName
- String
Der lokale Name des Attributs. Bei localName wird die Groß- und Kleinschreibung beachtet.
- namespaceURI
- String
Der Namespace-URI des Attributs.
Gibt zurück
A String that contains the value of the specified attribute; Empty if a matching attribute is not found, or if the XPathNavigator is not positioned on an element node.
Hinweise
Die XPathNavigator Position muss auf einem Elementknoten vor dem Aufrufen der GetAttribute Methode erfolgen.
Diese Methode hat keine Auswirkung auf den Zustand des XPathNavigator.