OPC Studio User's Guide and Reference
GetDefaultMemberPath Method (EventSource)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > EventSource Class : GetDefaultMemberPath Method
The type of the component for which the default member path should be determined.

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

The component for which the default member path should be determined.

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

Determines the default member path for a given component.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function GetDefaultMemberPath( _
   ByVal type As Type, _
   ByVal component As Object _
) As String
'Usage
 
Dim type As Type
Dim component As Object
Dim value As String
 
value = EventSource.GetDefaultMemberPath(type, component)
[CanBeNull()]
public static string GetDefaultMemberPath( 
   Type type,
   object component
)
[CanBeNull()]
public:
static String^ GetDefaultMemberPath( 
   Type^ type,
   Object^ component
) 

Parameters

type
The type of the component for which the default member path should be determined.

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

component
The component for which the default member path should be determined.

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

Return Value

The default member path, or null if it could not be determined.

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