OPC Studio User's Guide and Reference
GetName(Guid) Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAPropertyId Class > GetName Method : GetName(Guid) Method
A CLSID of the OPC server for which the property name should be obtained. This is used for properties that are server-specific. For standard properties, the method does not use this parameter, and it can be passed in as Guid.Empty.
Returns a string identifier of the property, for pre-defined properties. An empty string is returned if the property is not known.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Function GetName( _
   ByVal serverClsid As Guid _
) As String
'Usage
 
Dim instance As DAPropertyId
Dim serverClsid As Guid
Dim value As String
 
value = instance.GetName(serverClsid)
[NotNull()]
public string GetName( 
   Guid serverClsid
)
[NotNull()]
public:
String^ GetName( 
   Guid serverClsid
) 

Parameters

serverClsid
A CLSID of the OPC server for which the property name should be obtained. This is used for properties that are server-specific. For standard properties, the method does not use this parameter, and it can be passed in as Guid.Empty.

Return Value

Returns the property name.

This method never returns null (Nothing in Visual Basic).

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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