Connectivity Software User's Guide and Reference
FindOrCreateDataSetFolder Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub.Configuration Namespace > UAPubSubConfigurationData Class : FindOrCreateDataSetFolder Method
The parent dataset folder to start the search from. Must not be null.

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

A list of folder names representing the path to the target folder. Each element represents a subfolder level. Must not be null and elements must not be null.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Finds or creates a dataset folder at the specified path within the parent folder.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function FindOrCreateDataSetFolder( _
   ByVal parentDataSetFolderData As UADataSetFolderData, _
   ByVal dataSetFolderPathList As IReadOnlyList(Of String) _
) As UADataSetFolderData
'Usage
 
Dim parentDataSetFolderData As UADataSetFolderData
Dim dataSetFolderPathList As IReadOnlyList(Of String)
Dim value As UADataSetFolderData
 
value = UAPubSubConfigurationData.FindOrCreateDataSetFolder(parentDataSetFolderData, dataSetFolderPathList)
[JetBrains.Annotations.NotNull()]
public static UADataSetFolderData FindOrCreateDataSetFolder( 
   UADataSetFolderData parentDataSetFolderData,
   IReadOnlyList<string> dataSetFolderPathList
)
[JetBrains.Annotations.NotNull()]
public:
static UADataSetFolderData^ FindOrCreateDataSetFolder( 
   UADataSetFolderData^ parentDataSetFolderData,
   IReadOnlyList<String^>^ dataSetFolderPathList
) 

Parameters

parentDataSetFolderData
The parent dataset folder to start the search from. Must not be null.

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

dataSetFolderPathList
A list of folder names representing the path to the target folder. Each element represents a subfolder level. Must not be null and elements must not be null.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Return Value

The dataset folder at the specified path. If folders along the path do not exist, they are created.

This method never returns 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