![](dotnetdiagramimages/OpcLabs_EasyOpcUA_OpcLabs_EasyOpc_UA_Gds_UACertificateGroupElementCollection.png)
'Declaration
<CLSCompliantAttribute(True)> <ComDefaultInterfaceAttribute(OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection)> <ComVisibleAttribute(True)> <GuidAttribute("F2B52270-D7E5-4AAC-A0F5-791809DABD6D")> <TypeConverterAttribute(System.ComponentModel.CollectionConverter)> <DefaultMemberAttribute("Item")> <DebuggerTypeProxyAttribute(System.Collections.Generic.Mscorlib_KeyedCollectionDebugView`2)> <DebuggerDisplayAttribute("Count = {Count}")> <SerializableAttribute()> Public NotInheritable Class UACertificateGroupElementCollection Inherits OpcLabs.BaseLib.Collections.ObjectModel.SelectorKeyedCollection(Of UANodeId,UACertificateGroupElement) Implements OpcLabs.BaseLib.Collections.Generic.IKeyedCollection(Of UANodeId,UACertificateGroupElement), OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection, System.Collections.Generic.ICollection(Of UACertificateGroupElement), System.Collections.Generic.ICollection(Of T), System.Collections.Generic.IEnumerable(Of UACertificateGroupElement), System.Collections.Generic.IEnumerable(Of T), System.Collections.Generic.IList(Of UACertificateGroupElement), System.Collections.Generic.IReadOnlyCollection(Of UACertificateGroupElement), System.Collections.Generic.IReadOnlyList(Of UACertificateGroupElement), System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ICloneable
'Usage
Dim instance As UACertificateGroupElementCollection
[CLSCompliant(true)] [ComDefaultInterface(OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection)] [ComVisible(true)] [Guid("F2B52270-D7E5-4AAC-A0F5-791809DABD6D")] [TypeConverter(System.ComponentModel.CollectionConverter)] [DefaultMember("Item")] [DebuggerTypeProxy(System.Collections.Generic.Mscorlib_KeyedCollectionDebugView`2)] [DebuggerDisplay("Count = {Count}")] [Serializable()] public sealed class UACertificateGroupElementCollection : OpcLabs.BaseLib.Collections.ObjectModel.SelectorKeyedCollection<UANodeId,UACertificateGroupElement>, OpcLabs.BaseLib.Collections.Generic.IKeyedCollection<UANodeId,UACertificateGroupElement>, OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection, System.Collections.Generic.ICollection<UACertificateGroupElement>, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<UACertificateGroupElement>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<UACertificateGroupElement>, System.Collections.Generic.IReadOnlyCollection<UACertificateGroupElement>, System.Collections.Generic.IReadOnlyList<UACertificateGroupElement>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ICloneable
[CLSCompliant(true)] [ComDefaultInterface(OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection)] [ComVisible(true)] [Guid("F2B52270-D7E5-4AAC-A0F5-791809DABD6D")] [TypeConverter(System.ComponentModel.CollectionConverter)] [DefaultMember("Item")] [DebuggerTypeProxy(System.Collections.Generic.Mscorlib_KeyedCollectionDebugView`2)] [DebuggerDisplay("Count = {Count}")] [Serializable()] public ref class UACertificateGroupElementCollection sealed : public OpcLabs.BaseLib.Collections.ObjectModel.SelectorKeyedCollection<UANodeId,UACertificateGroupElement>, OpcLabs.BaseLib.Collections.Generic.IKeyedCollection<UANodeId,UACertificateGroupElement>, OpcLabs.EasyOpc.UA.Gds.ComTypes._UACertificateGroupElementCollection, System.Collections.Generic.ICollection<UACertificateGroupElement>, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<UACertificateGroupElement>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<UACertificateGroupElement>, System.Collections.Generic.IReadOnlyCollection<UACertificateGroupElement>, System.Collections.Generic.IReadOnlyList<UACertificateGroupElement>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ICloneable
// Shows how to browse and display the certificate groups available in the Certificate Manager. // // Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . // OPC client and subscriber examples in C# on GitHub: https://github.com/OPCLabs/Examples-QuickOPC-CSharp . // Missing some example? Ask us for it on our Online Forums, https://www.opclabs.com/forum/index ! You do not have to own // a commercial license in order to use Online Forums, and we reply to every post. using System; using OpcLabs.EasyOpc.UA; using OpcLabs.EasyOpc.UA.Gds; using OpcLabs.EasyOpc.UA.OperationModel; namespace UADocExamples.Gds._EasyUACertificateManagementClient { class BrowseCertificateGroups { public static void Main1() { // Define which GDS we will work with. UAEndpointDescriptor gdsEndpointDescriptor = "opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer"; // Instantiate the certificate management client object. var certificateManagementClient = new EasyUACertificateManagementClient(); // Browse the certificate groups available in the GDS. UACertificateGroupElementCollection certificateGroupElementCollection; try { certificateGroupElementCollection = certificateManagementClient.BrowseCertificateGroups(gdsEndpointDescriptor); } catch (UAException uaException) { Console.WriteLine("*** Failure: {0}", uaException.GetBaseException().Message); return; } // Display results foreach (UACertificateGroupElement certificateGroupElement in certificateGroupElementCollection) { Console.WriteLine(certificateGroupElement); } } } }
' Shows how to browse and display the certificate groups available in the Certificate Manager. ' ' Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . ' OPC client and subscriber examples in VB.NET on GitHub: https://github.com/OPCLabs/Examples-QuickOPC-VBNET . ' Missing some example? Ask us for it on our Online Forums, https://www.opclabs.com/forum/index ! You do not have to own ' a commercial license in order to use Online Forums, and we reply to every post. Imports OpcLabs.EasyOpc.UA Imports OpcLabs.EasyOpc.UA.Discovery Imports OpcLabs.EasyOpc.UA.Gds Imports OpcLabs.EasyOpc.UA.OperationModel Namespace Gds._EasyUACertificateManagementClient Friend Class BrowseCertificateGroups Public Shared Sub Main1() ' Define which GDS we will work with. Dim gdsEndpointDescriptor As UAEndpointDescriptor = "opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer" ' Instantiate the certificate management client object Dim certificateManagementClient = New EasyUACertificateManagementClient() ' Browse the certificate groups available in the GDS. Dim certificateGroupElementCollection As UACertificateGroupElementCollection Try certificateGroupElementCollection = certificateManagementClient.BrowseCertificateGroups(gdsEndpointDescriptor) Catch uaException As UAException Console.WriteLine("*** Failure: {0}", uaException.GetBaseException.Message) Exit Sub End Try ' Display results For Each certificateGroupElement As UACertificateGroupElement In certificateGroupElementCollection Console.WriteLine(certificateGroupElement) Next certificateGroupElement End Sub End Class End Namespace
# Shows how to browse and display the certificate groups available in the Certificate Manager. # # Find all latest examples here: https://opclabs.doc-that.com/files/onlinedocs/OPCLabs-OpcStudio/Latest/examples.html . # OPC client and subscriber examples in Python on GitHub: https://github.com/OPCLabs/Examples-QuickOPC-Python . # Missing some example? Ask us for it on our Online Forums, https://www.opclabs.com/forum/index ! You do not have to own # a commercial license in order to use Online Forums, and we reply to every post. # The QuickOPC package is needed. Install it using "pip install opclabs_quickopc". import opclabs_quickopc # Import .NET namespaces. from OpcLabs.EasyOpc.UA import * from OpcLabs.EasyOpc.UA.Gds import * from OpcLabs.EasyOpc.UA.OperationModel import * # Define which GDS we will work with. gdsEndpointDescriptor = UAEndpointDescriptor('opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer') # Instantiate the certificate management client object. certificateManagementClient = EasyUACertificateManagementClient() # Browse the certificate groups available in the GDS. try: certificateGroupElementCollection = certificateManagementClient.BrowseCertificateGroups(gdsEndpointDescriptor) except UAException as uaException: print('*** Failure: ' + uaException.GetBaseException().Message) exit() # Display results. for certificateGroupElement in certificateGroupElementCollection: print(certificateGroupElement) print() print('Finished.')
System.Object
System.Collections.ObjectModel.Collection<T>
System.Collections.ObjectModel.KeyedCollection<TKey,TItem>
OpcLabs.EasyOpc.UA.Gds.UACertificateGroupElementCollection