OPC Studio User's Guide and Reference
GetNewNodeNameBase Method (Node)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.NodeSpace Namespace > Node Class : GetNewNodeNameBase Method
The type of the node for which the node name base should be determined.

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

Infrastructure.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Overridable Function GetNewNodeNameBase( _
   ByVal nodeType As Type _
) As String
'Usage
 
Dim instance As Node
Dim nodeType As Type
Dim value As String
 
value = instance.GetNewNodeNameBase(nodeType)
[CanBeNull()]
public virtual string GetNewNodeNameBase( 
   Type nodeType
)
[CanBeNull()]
public:
virtual String^ GetNewNodeNameBase( 
   Type^ nodeType
) 

Parameters

nodeType
The type of the node for which the node name base should be determined.

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

Return Value

Returns the name base for new nodes of nodeType type.

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

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

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