Skip to content

Reference

OpcClient.CreateSubscription Method

Creates a new OpcSubscription using the setup specified.

Reference

OpcClient.CreateSubscription Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

since v2.32

Creates a new OpcSubscription using the setup specified.

csharp
public OpcSubscription CreateSubscription(OpcSubscriptionSetup setup)
vbnet
Public Function CreateSubscription(
    setup As OpcSubscriptionSetup) As OpcSubscription

Parameters

NameTypeDescription
setupOpcSubscriptionSetupAn instance of the OpcSubscriptionSetup to use to create the new subscription.

Returns

OpcSubscription

A new instance of the OpcSubscription class representing the subscription created at the server and associated with the session of the current OpcClient.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe setup is a null reference (Nothing in Visual Basic).