Finds an element in the collection that matches the specified type and name.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Elements
Dim t As Type
Dim elementName As String
Dim value As Object
value = instance.FindByType(t, elementName) |
Parameters
- t
- Type of element
- elementName
- Name of element
Return Value
Object that is found
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also