Skip to content

Reference

OpcEndpointConfiguration Members

Represents the limits and timeouts used to communicate with an endpoint (see Configuration).

Reference

OpcEndpointConfiguration Members ​

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

Constructors ​

OpcEndpointConfiguration ​

Initializes a new instance of the OpcEndpointConfiguration class using the default values of the OPC UA stack.

csharp
public OpcEndpointConfiguration()
vbnet
Public Sub New()

Remarks

The default values of the OPC UA stack differ from those of OpcTransport, e.g. the ChannelLifetime is 2 minutes instead of DefaultChannelLifetime. Use From to use the values of an application.

Properties ​

ChannelLifetime ​

Gets or sets the lifetime of a secure channel in milliseconds.

csharp
public int ChannelLifetime { get; set; }
vbnet
Public Property ChannelLifetime As Integer

Property value

Int32

The lifetime of a secure channel in milliseconds.

MaxArrayLength ​

Gets or sets the maximum length of an array encoded in a message body.

csharp
public int MaxArrayLength { get; set; }
vbnet
Public Property MaxArrayLength As Integer

Property value

Int32

The maximum number of elements of an array.

MaxBufferSize ​

Gets or sets the maximum size of the buffer to use when sending messages.

csharp
public int MaxBufferSize { get; set; }
vbnet
Public Property MaxBufferSize As Integer

Property value

Int32

The maximum size of the buffer in bytes.

MaxByteStringLength ​

Gets or sets the maximum length of a byte string encoded in a message body.

csharp
public int MaxByteStringLength { get; set; }
vbnet
Public Property MaxByteStringLength As Integer

Property value

Int32

The maximum length of a byte string in bytes.

MaxMessageSize ​

Gets or sets the maximum length of a message body in bytes.

csharp
public int MaxMessageSize { get; set; }
vbnet
Public Property MaxMessageSize As Integer

Property value

Int32

The maximum length of a message body in bytes.

MaxStringLength ​

Gets or sets the maximum length of a string encoded in a message body.

csharp
public int MaxStringLength { get; set; }
vbnet
Public Property MaxStringLength As Integer

Property value

Int32

The maximum length of a string.

OperationTimeout ​

Gets or sets the timeout to use when sending requests in milliseconds.

csharp
public int OperationTimeout { get; set; }
vbnet
Public Property OperationTimeout As Integer

Property value

Int32

The timeout of a request in milliseconds.

SecurityTokenLifetime ​

Gets or sets the lifetime of a security token in milliseconds.

csharp
public int SecurityTokenLifetime { get; set; }
vbnet
Public Property SecurityTokenLifetime As Integer

Property value

Int32

The lifetime of a security token in milliseconds.

UseBinaryEncoding ​

Gets or sets a value indicating whether messages are encoded using the binary encoding.

csharp
public bool UseBinaryEncoding { get; set; }
vbnet
Public Property UseBinaryEncoding As Boolean

Property value

Boolean

The value true if the binary encoding is used; otherwise the value false.

Methods ​

From ​

static

Creates an OpcEndpointConfiguration using the transport quotas of the configuration specified.

csharp
[CLSCompliant(false)]
public static OpcEndpointConfiguration From(
    OpcApplicationConfiguration configuration)
vbnet
<CLSCompliant(False)>
Public Shared Function From(
    configuration As OpcApplicationConfiguration) As OpcEndpointConfiguration

Parameters

NameTypeDescription
configurationOpcApplicationConfigurationThe configuration of the application whose transport quotas are to be used.

Returns

OpcEndpointConfiguration

A new OpcEndpointConfiguration using the transport quotas of the configuration, or the default values of the OPC UA stack if the configuration does not define transport quotas. The binary encoding is used in either case.

Exceptions

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