NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DocumentNavigator.MoveToAttribute

Move to the specified attribute.

The MoveToAttribute methods enable you to get both random access to attributes and strongly typed access to attribute values.

To get strongly typed access to an attribute value, you must do the following:

  1. Call MoveToAttribute to move to the attribute whose value you want to access.
  2. Call Read method for the data type you want (for example, ReadBoolean for boolean, ReadDate for DateTime, and so on).

After calling MoveToAttribute, the Name, Namespace, Prefix properties will reflect the properties of that attribute.

Overload List

Move to the attribute with matching name and namespace.

[Visual Basic] Overloads Overrides Public Function MoveToAttribute(String, String) As Boolean
[C#] public override bool MoveToAttribute(String, String);
[C++] public: override bool MoveToAttribute(String*, String*);
[JScript] public override function MoveToAttribute(String, String) : Boolean;

Moves to the attribute with the specified name.

[Visual Basic] Overloads Overrides Public Function MoveToAttribute(String) As Boolean
[C#] public override bool MoveToAttribute(String);
[C++] public: override bool MoveToAttribute(String*);
[JScript] public override function MoveToAttribute(String) : Boolean;

Moves to the attribute with the specified index.

[Visual Basic] Overloads Overrides Public Function MoveToAttribute(Integer) As Boolean
[C#] public override bool MoveToAttribute(int);
[C++] public: override bool MoveToAttribute(int);
[JScript] public override function MoveToAttribute(int) : Boolean;

See Also

DocumentNavigator Class | DocumentNavigator Members | System.NewXml Namespace