Reference
OpcServiceRequest Members
Defines the base class of the requests of the services of OPC UA, e.g. as passed to the Invoke method of a service.
Reference
OpcServiceRequest Members
- Type
- OpcServiceRequest
- Namespace
- Opc.UaFx.Services
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcServiceRequest
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opc |
| Opc | Initializes a new instance of the Opcheader. |
OpcServiceRequest()
Initializes a new instance of the OpcServiceRequest class using a new header.
protected OpcServiceRequest()Protected Sub New()OpcServiceRequest(IOpcServiceRequestHeader)
Initializes a new instance of the OpcServiceRequest class using the specified header.
protected OpcServiceRequest(IOpcServiceRequestHeader header)Protected Sub New(header As IOpcServiceRequestHeader)Parameters
| Name | Type | Description |
|---|---|---|
header | IOpc | The header of the request. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The header is a null reference ( |
Properties
Header
Gets the header of the request.
public IOpcServiceRequestHeader Header { get; }Public ReadOnly Property Header As IOpcServiceRequestHeaderProperty value
The IOpcServiceRequestHeader of the request.
Implements
ServiceName
Gets the name of the service of the request.
public string ServiceName { get; }Public ReadOnly Property ServiceName As StringProperty value
The name of the type of the request without the prefix "Opc" and the suffix "Request" (e.g. "ReadNodes" for OpcReadNodesRequest); for a request of a service without a type of its own, the name of the service as defined by OPC UA.
Methods
CreateHeader
Creates the header of the request using CreateHeaderCore and assigns it to the request.
protected IOpcServiceRequestHeader CreateHeader()Protected Function CreateHeader() As IOpcServiceRequestHeaderReturns
The header created.
CreateHeaderCore
When overridden in a derived class, creates the header of the request.
protected virtual IOpcServiceRequestHeader CreateHeaderCore()Protected Overridable Function CreateHeaderCore() As IOpcServiceRequestHeaderReturns
The header created. The default implementation returns an OpcServiceRequestHeader which represents the header of the request data, or a new OpcServiceRequestHeader if the request data does not have a header.
Validate
When overridden in a derived class, validates the request before a server processes it.
protected virtual void Validate()Protected Overridable Sub Validate()Remarks
A server rejects a request which fails the validation with the status code of the validation, e.g. a request without commands with BadNothingToDo. The default implementation does not validate anything.

