FindName Method
Collapse the table of content
Expand the table of content

INameScope.FindName Method (String)


Returns an object that has the provided identifying name.

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

Function FindName (
	name As String
) As Object


Type: System.String

The name identifier for the object being requested.

Return Value

Type: System.Object

The object, if found. Returns null if no object of that name was found.

Valid name strings in XAML markup must match the requirements documented in XamlName Grammar.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft