Skip to content
Start free evaluation

OPC UA .NET API

The public .NET API of OPC UA.

71 symbols
  • ResponseInfo.BinaryId FieldThe numeric binary encoding ID (namespace 0) of the response body: the expected response type, or ServiceFault.
  • ResponseInfo.RequestId FieldThe client-local request ID returned by Client.Begin.
  • ResponseInfo.ServiceStatus FieldThe serviceResult status code from the response header; a Bad code has the top bit (0x80000000) set.
  • SecurityMode.None EnumeratorMessages are neither signed nor encrypted; only valid with SecurityPolicy.None.
  • SecurityMode.Sign EnumeratorMessages are signed.
  • SecurityMode.SignAndEncrypt EnumeratorMessages are signed and encrypted; the default.
  • SecurityPolicy.Aes128Sha256RsaOaep EnumeratorThe Aes128_Sha256_RsaOaep policy.
  • SecurityPolicy.Aes256Sha256RsaPss EnumeratorThe Aes256_Sha256_RsaPss policy; the default.
  • SecurityPolicy.Basic256Sha256 EnumeratorThe Basic256Sha256 policy.
  • SecurityPolicy.None EnumeratorNo security (http://opcfoundation.org/UA/SecurityPolicy#None); requires explicit opt-in.
  • VariableFlags.None EnumeratorRead-only, and readable only by authenticated (non-anonymous) sessions.
  • VariableFlags.Public EnumeratorAnonymous sessions may access the variable as well.
  • VariableFlags.Writable EnumeratorClients may write the value.
  • BinaryBuffer.Copy MethodCopies the buffer's contents into a new array.
  • BinaryBuffer.Dispose MethodReleases the native buffer.
  • Client.ActivateAnonymous MethodActivates the session with an anonymous identity.
  • Client.ActivateUserName MethodActivates the session with a user name and password identity.
  • Client.Begin MethodSends a service request.
  • Client.Close MethodCloses the session and the secure channel in an orderly way.
  • Client.Connect MethodOpens a secure channel to a server and creates a session.
  • Client.Discover MethodRequests the endpoints of a server without creating a session.
  • Client.Dispose MethodReleases the client; an open connection is aborted without a protocol close.
  • Client.Poll MethodSends queued request data and reads the responses that have arrived, without waiting for new data.
  • Client.Take MethodTakes the response to a request if it has arrived.
  • ClientOptions.ClientOptions ConstructorInitializes a new instance with default values.
  • License.HostId MethodGets the host id of this machine, which host-bound licenses (SECS/GEM runtime licenses) name.
  • License.Install MethodInstalls license text, replacing text installed earlier through this method.
  • License.Status MethodGets the license status of the OPC UA library.
  • Server.AddVariable MethodAdds a variable below the Objects folder.
  • Server.Close MethodStops accepting connections and aborts open channels.
  • Server.Create MethodCreates a server and binds its listening socket.
  • Server.Dispose MethodReleases the server, aborting open channels if it is still running.
  • Server.LocalAddress MethodGets the socket address the server is bound to, for example to learn the port chosen for port 0.
  • Server.Poll MethodAccepts connections and serves pending requests without waiting for new data.
  • Server.ReadValue MethodReads the current value of a variable from the application.
  • Server.SetValue MethodSets the value of a variable from the application.
  • ServerOptions.ServerOptions ConstructorInitializes a new instance with default values.
  • OpcUa Namespace
  • Client.AbiVersion PropertyGets the ABI version reported by the native library, as major in the upper 16 bits and minor in the lower 16 bits.
  • ClientOptions.AllowNone PropertyGets whether SecurityPolicy.None may be used; it is rejected unless this is true.
  • ClientOptions.ApplicationUri PropertyGets the client's application URI; default urn:pdcomm:opcua:client.
  • ClientOptions.CertificateDer PropertyGets the client's application instance certificate, DER-encoded; empty for none.
  • ClientOptions.Mode PropertyGets the message security mode; default SecurityMode.SignAndEncrypt.
  • ClientOptions.Policy PropertyGets the security policy of the secure channel; default SecurityPolicy.Aes256Sha256RsaPss.
  • ClientOptions.PrivateKeyPem PropertyGets the private key of ClientOptions.CertificateDer, PEM-encoded; empty for none.
  • ClientOptions.TimeoutMs PropertyGets the timeout of each network exchange, in milliseconds; default 10000. DNS resolution is not covered.
  • ClientOptions.TrustedServerDer PropertyGets the server certificate to trust explicitly, DER-encoded; empty for none.
  • ClientOptions.UserSecretHeaderPolicyOnly PropertyGets whether new RSA-encrypted user secrets omit their outer encryption algorithm URI, so that the authenticated security header selects the policy. Set it only when the server requires it; legacy-format tokens still carry the algorithm URI.
  • OpcUaException.LicenseRequired PropertyGets whether the call was refused because no valid PDComm license grants the module it needs (opcua-client for discovery and connect, opcua-server for server creation); native status 11.
  • OpcUaException.NativeStatus PropertyGets the native status code: 1 invalid input, 2 invalid handle, 3 internal error, 4 buffer too small, 5 runtime error (for example a network, security or protocol failure), 7 busy, 8 poisoned, 9 limit exceeded, 10 closed, or 11 license required.
  • Response.Info PropertyGets the response's request ID, encoding ID and service status.
  • ServerOptions.AllowNone PropertyGets whether the server also offers an endpoint without security; default false.
  • ServerOptions.ApplicationUri PropertyGets the server's application URI; default urn:pdcomm:opcua:server.
  • ServerOptions.CertificateDer PropertyGets the server's application instance certificate, DER-encoded.
  • ServerOptions.Endpoint PropertyGets the endpoint URL that the server advertises; default opc.tcp://localhost:4840/pdcomm. With port 0 the advertised endpoints use the port actually bound.
  • ServerOptions.MaxConnections PropertyGets the largest number of concurrent TCP connections; default 33.
  • ServerOptions.MaxSessions PropertyGets the largest number of concurrent sessions; default 32.
  • ServerOptions.PrivateKeyPem PropertyGets the private key of ServerOptions.CertificateDer, PEM-encoded.
  • ServerOptions.TrustedClientDer PropertyGets the one client certificate to trust explicitly, DER-encoded; empty for none.
  • BinaryBuffer ClassAn immutable byte buffer owned by the PDComm OPC UA native library.
  • Client ClassAn OPC UA client session driven by the caller: send UA Binary service requests and poll for their responses.
  • ClientOptions ClassSecurity, identity and timing options for Client.Connect.
  • License ClassInstalls and inspects the PDComm license of the OPC UA native library.
  • OpcUaException ClassThe exception thrown when a PDComm OPC UA native call fails.
  • Response ClassA validated OPC UA service response taken from a Client.
  • ResponseInfo StructMetadata of a validated OPC UA service response.
  • SecurityMode EnumOPC UA message security modes (MessageSecurityMode).
  • SecurityPolicy EnumOPC UA security policies (OPC 10000-7) supported for the secure channel.
  • Server ClassAn OPC UA server with an in-memory address space, driven by the caller.
  • ServerOptions ClassEndpoint, identity, trust and capacity options for Server.Create.
  • VariableFlags EnumAccess options of a variable added with Server.AddVariable.