Element.FindByName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.