OPC Studio User's Guide and Reference
Browse Method (IDirectoryContentsExtension)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Extensions.FileProviders Namespace > IDirectoryContentsExtension Class : Browse Method
The directory contents object that will perform the operation.
Enumerates subdirectories and files in the given directory only.
Syntax
'Declaration
 
<ExtensionAttribute()>
<ElementsNotNullAttribute()>
<NotNullAttribute()>
Public Shared Function Browse( _
   ByVal directoryContents As IDirectoryContents _
) As IEnumerable(Of FileSystemNodeTreePosition)
'Usage
 
Dim directoryContents As IDirectoryContents
Dim value As IEnumerable(Of FileSystemNodeTreePosition)
 
value = IDirectoryContentsExtension.Browse(directoryContents)
[Extension()]
[ElementsNotNull()]
[NotNull()]
public static IEnumerable<FileSystemNodeTreePosition> Browse( 
   IDirectoryContents directoryContents
)
[Extension()]
[ElementsNotNull()]
[NotNull()]
public:
static IEnumerable<FileSystemNodeTreePosition^>^ Browse( 
   IDirectoryContents^ directoryContents
) 

Parameters

directoryContents
The directory contents object that will perform the operation.

Return Value

Returns a sequence of directories and files.
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