Determines the default error member path for a given component.
Syntax
'Declaration
<CanBeNullAttribute()>
Public Shared Function GetDefaultErrorMemberPath( _
ByVal As Type, _
ByVal As Object _
) As String
'Usage
Dim type As Type
Dim target As Object
Dim value As String
value = ValueTarget.GetDefaultErrorMemberPath(type, target)
Parameters
- type
- The type of the component for which the default error member path should be determined.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
- target
- The component for which the default error 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