OPC Studio User's Guide and Reference
FindByName(String) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Configuration.Abstract Namespace > ConfigurationPartCollection Class > FindByName Method : FindByName(String) Method
Unqualified name of the configuration part to be found.

The value of this parameter cannot be null (Nothing in Visual Basic).

Finds a configuration part given its unqualified name. The search is case-sensitive.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Overloads Function FindByName( _
   ByVal name As String _
) As Object
'Usage
 
Dim instance As ConfigurationPartCollection
Dim name As String
Dim value As Object
 
value = instance.FindByName(name)
[CanBeNull()]
public object FindByName( 
   string name
)
[CanBeNull()]
public:
Object^ FindByName( 
   String^ name
) 

Parameters

name
Unqualified name of the configuration part to be found.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

Returns a non-null configuration part if the configuration part is found; returns a null reference otherwise.

This method can return null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also