OPC Studio User's Guide and Reference
GetCategories Method (IReadOnlyAliasRepository)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Aliasing Namespace > IReadOnlyAliasRepository Interface : GetCategories Method
Gets names of alias categories in the repository.
Syntax
'Declaration
 
<NotNullAttribute()>
Function GetCategories() As ValueResult(Of IEnumerable(Of String))
'Usage
 
Dim instance As IReadOnlyAliasRepository
Dim value As ValueResult(Of IEnumerable(Of String))
 
value = instance.GetCategories()
[NotNull()]
ValueResult<IEnumerable<string>> GetCategories()
[NotNull()]
ValueResult<IEnumerable<String^>^>^ GetCategories(); 

Return Value

Returns a value result which contains a sequence of alias category names in case of success, or an error in case of failure.

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