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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Configuration.Abstract Namespace > ConfigurationPartCollection Class > FindByName Method : FindByName(String,Boolean) Method
Unqualified name of the configuration part to be found.
Determines whether the search is case-sensitive.
Finds a configuration part given its unqualified name.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Overloads Function FindByName( _
   ByVal name As String, _
   ByVal ignoreCase As Boolean _
) As Object
'Usage
 
Dim instance As ConfigurationPartCollection
Dim name As String
Dim ignoreCase As Boolean
Dim value As Object
 
value = instance.FindByName(name, ignoreCase)
[CanBeNull()]
public object FindByName( 
   string name,
   bool ignoreCase
)
[CanBeNull()]
public:
Object^ FindByName( 
   String^ name,
   bool ignoreCase
) 

Parameters

name
Unqualified name of the configuration part to be found.
ignoreCase
Determines whether the search is case-sensitive.

Return Value

Returns a non-null configuration part if the configuration part is found; returns a null reference otherwise.
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