Skip to content

Reference

OpcServerInfo Members

Provides company and product related information used for the properties of a server.

Reference

OpcServerInfo Members ​

Type
OpcServerInfo
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Constructors ​

OpcServerInfo ​

5 overloads

OverloadDescription
OpcServerInfo(string)Initializes a new instance of the OpcServerInfo class using the companyName specified.
OpcServerInfo(string, string)Initializes a new instance of the OpcServerInfo class using the companyName and productName specified.
OpcServerInfo(string, string, Version)Initializes a new instance of the OpcServerInfo class using the companyName, productName and productVersion specified.
OpcServerInfo(string, string, Version, DateTime)Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified.
OpcServerInfo(string, string, Version, DateTime, Uri)since v2.50Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified.

OpcServerInfo(string) ​

Initializes a new instance of the OpcServerInfo class using the companyName specified.

csharp
public OpcServerInfo(string companyName)
vbnet
Public Sub New(companyName As String)

Parameters

NameTypeDescription
companyNameStringThe name of the company which offers the server.

OpcServerInfo(string, string) ​

Initializes a new instance of the OpcServerInfo class using the companyName and productName specified.

csharp
public OpcServerInfo(string companyName, string productName)
vbnet
Public Sub New(companyName As String, productName As String)

Parameters

NameTypeDescription
companyNameStringThe name of the company which offers the server.
productNameStringThe name of the product which implements the server.

OpcServerInfo(string, string, Version) ​

Initializes a new instance of the OpcServerInfo class using the companyName, productName and productVersion specified.

csharp
public OpcServerInfo(
    string companyName,
    string productName,
    Version productVersion)
vbnet
Public Sub New(
    companyName As String,
    productName As String,
    productVersion As Version)

Parameters

NameTypeDescription
companyNameStringThe name of the company which offers the server.
productNameStringThe name of the product which implements the server.
productVersionVersionThe version of the product which implements the server.

OpcServerInfo(string, string, Version, DateTime) ​

Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified.

csharp
public OpcServerInfo(
    string companyName,
    string productName,
    Version productVersion,
    DateTime buildDate)
vbnet
Public Sub New(
    companyName As String,
    productName As String,
    productVersion As Version,
    buildDate As Date)

Parameters

NameTypeDescription
companyNameStringThe name of the company which offers the server.
productNameStringThe name of the product which implements the server.
productVersionVersionThe version of the product which implements the server.
buildDateDateTimeThe DateTime at which the product has built.

OpcServerInfo(string, string, Version, DateTime, Uri) ​

since v2.50

Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified.

csharp
public OpcServerInfo(
    string companyName,
    string productName,
    Version productVersion,
    DateTime buildDate,
    Uri productUri)
vbnet
Public Sub New(
    companyName As String,
    productName As String,
    productVersion As Version,
    buildDate As Date,
    productUri As Uri)

Parameters

NameTypeDescription
companyNameStringThe name of the company which offers the server.
productNameStringThe name of the product which implements the server.
productVersionVersionThe version of the product which implements the server.
buildDateDateTimeThe DateTime at which the product has built.
productUriUriThe URI of the product which implements the server.

Properties ​

BuildDate ​

Gets the DateTime at which the product has built.

csharp
public DateTime BuildDate { get; }
vbnet
Public ReadOnly Property BuildDate As Date

Property value

DateTime

The DateTime at which the product has built.

CompanyName ​

Gets the name of the company which offers the server.

csharp
public string CompanyName { get; }
vbnet
Public ReadOnly Property CompanyName As String

Property value

String

The name of the company which offers the server.

IsProcessInfo ​

since v2.58

Gets a value indicating whether the information has been determined from the host process instead of from the server assembly. In this case the company is the one of the host and does not necessarily identify the organization that runs the server.

csharp
public bool IsProcessInfo { get; }
vbnet
Public ReadOnly Property IsProcessInfo As Boolean

Property value

Boolean

ProductName ​

Gets the name of the product which implements the server.

csharp
public string ProductName { get; }
vbnet
Public ReadOnly Property ProductName As String

Property value

String

The name of the product which implements the server.

ProductUri ​

since v2.50

Gets the URI of the product which implements the server.

csharp
public Uri ProductUri { get; }
vbnet
Public ReadOnly Property ProductUri As Uri

Property value

Uri

The URI of the product which implements the server.

ProductVersion ​

Gets the version of the product which implements the server.

csharp
public Version ProductVersion { get; }
vbnet
Public ReadOnly Property ProductVersion As Version

Property value

Version

The Version of the product which implements the server.

Methods ​

FromAssembly ​

static

Determines the server information from the assembly specified.

csharp
public static OpcServerInfo FromAssembly(Assembly assembly)
vbnet
Public Shared Function FromAssembly(assembly As Assembly) As OpcServerInfo

Parameters

NameTypeDescription
assemblyAssemblyThe Assembly from its AssemblyCompanyAttribute the CompanyName, its AssemblyTitleAttribute the ProductName, its AssemblyVersionAttribute the ProductVersion and its Location the LastWriteTime the BuildDate is determined.

Returns

OpcServerInfo

A new instance of the OpcServerInfo class with the information determined using the assembly specified.

Exceptions

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

FromProcess ​

static

Determines the server information from the process specified.

csharp
public static OpcServerInfo FromProcess(Process process)
vbnet
Public Shared Function FromProcess(process As Process) As OpcServerInfo

Parameters

NameTypeDescription
processProcessThe Process from its MainModule the FileVersionInfo is used to initialize the CompanyName with the CompanyName, the ProductName with the ProductName and the ProductVersion with the ProductVersion (fallback via FileVersion).

Returns

OpcServerInfo

A new instance of the OpcServerInfo class with the information determined using the process specified.

Exceptions

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