OpcServerInfo Members

Namespace: Opc.UaFx.Server
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcServerInfo type exposes the following members.

OpcServerInfo(String)

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

C#

public OpcServerInfo(string companyName)


Parameters

companyName String

The 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.

C#

public OpcServerInfo(string companyName, string productName)


Parameters

companyName String

The name of the company which offers the server.

productName String

The 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.

C#

public OpcServerInfo(string companyName, string productName, Version productVersion)


Parameters

companyName String

The name of the company which offers the server.

productName String

The name of the product which implements the server.

productVersion Version

The 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.

C#

public OpcServerInfo(string companyName, string productName, Version productVersion, DateTime buildDate)


Parameters

companyName String

The name of the company which offers the server.

productName String

The name of the product which implements the server.

productVersion Version

The version of the product which implements the server.

buildDate DateTime

The DateTime at which the product has built.

BuildDate

Gets the DateTime at which the product has built.

C#

public DateTime BuildDate { get; }


Property Value

DateTime

The DateTime at which the product has built.

CompanyName

Gets the name of the company which offers the server.

C#

public string CompanyName { get; }


Property Value

String

The name of the company which offers the server.

ProductName

Gets the name of the product which implements the server.

C#

public string ProductName { get; }


Property Value

String

The name of the product which implements the server.

ProductVersion

Gets the version of the product which implements the server.

C#

public Version ProductVersion { get; }


Property Value

Version

The Version of the product which implements the server.

FromAssembly(Assembly)

Determines the server information from the assembly specified.

C#

public static OpcServerInfo FromAssembly(Assembly assembly)


Parameters

assembly Assembly

The Assembly from its AssemblyCompanyAttribute the CompanyName, its AssemblyTitleAttribute the ProductName, its AssemblyVersionAttribute the ProductVersion and its Assembly.CodeBase the FileSystemInfo.LastWriteTime the BuildDate is determined.


Returns

OpcServerInfo

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



Exceptions

ArgumentNullException

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

FromProcess(Process)

Determines the server information from the process specified.

C#

public static OpcServerInfo FromProcess(Process process)


Parameters

process Process

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


Returns

OpcServerInfo

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



Exceptions

ArgumentNullException

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