Share via


Element.FindByName(String) Method

Definition

Returns the element that has the specified name.

public:
 virtual System::Object ^ FindByName(System::String ^ name);
public object FindByName (string name);
abstract member FindByName : string -> obj
override this.FindByName : string -> obj
Public Function FindByName (name As String) As Object

Parameters

name
String

The name of the element to be found.

Returns

The element that has the specified name.

Implements

Exceptions

Thrown if the element's namescope couldn't be found.

Applies to