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
| Overload | Description |
|---|---|
| OpcServerInfo( | Initializes a new instance of the OpcServerInfo class using the companyName specified. |
| OpcServerInfo( | Initializes a new instance of the OpcServerInfo class using the companyName and productName specified. |
| OpcServerInfo( | Initializes a new instance of the OpcServerInfo class using the companyName, productName and productVersion specified. |
| OpcServerInfo( | Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified. |
| OpcServerInfo( | Initializes 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.
public OpcServerInfo(string companyName)Public Sub New(companyName As String)Parameters
| Name | Type | Description |
|---|---|---|
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.
public OpcServerInfo(string companyName, string productName)Public Sub New(companyName As String, productName As String)Parameters
| Name | Type | Description |
|---|---|---|
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.
public OpcServerInfo(
string companyName,
string productName,
Version productVersion)Public Sub New(
companyName As String,
productName As String,
productVersion As Version)Parameters
| Name | Type | Description |
|---|---|---|
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.
public OpcServerInfo(
string companyName,
string productName,
Version productVersion,
DateTime buildDate)Public Sub New(
companyName As String,
productName As String,
productVersion As Version,
buildDate As Date)Parameters
| Name | Type | Description |
|---|---|---|
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. |
OpcServerInfo(string, string, Version, DateTime, Uri)
Initializes a new instance of the OpcServerInfo class using the companyName, productName, productVersion and buildDate specified.
public OpcServerInfo(
string companyName,
string productName,
Version productVersion,
DateTime buildDate,
Uri productUri)Public Sub New(
companyName As String,
productName As String,
productVersion As Version,
buildDate As Date,
productUri As Uri)Parameters
| Name | Type | Description |
|---|---|---|
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. |
productUri | Uri | The URI of the product which implements the server. |
Properties
BuildDate
Gets the DateTime at which the product has built.
public DateTime BuildDate { get; }Public ReadOnly Property BuildDate As DateProperty value
The DateTime at which the product has built.
CompanyName
Gets the name of the company which offers the server.
public string CompanyName { get; }Public ReadOnly Property CompanyName As StringProperty value
The name of the company which offers the server.
IsProcessInfo
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.
public bool IsProcessInfo { get; }Public ReadOnly Property IsProcessInfo As BooleanProperty value
ProductName
Gets the name of the product which implements the server.
public string ProductName { get; }Public ReadOnly Property ProductName As StringProperty value
The name of the product which implements the server.
ProductUri
Gets the URI of the product which implements the server.
public Uri ProductUri { get; }Public ReadOnly Property ProductUri As UriProperty value
The URI of the product which implements the server.
ProductVersion
Gets the version of the product which implements the server.
public Version ProductVersion { get; }Public ReadOnly Property ProductVersion As VersionProperty value
The Version of the product which implements the server.
Methods
FromAssembly
Determines the server information from the assembly specified.
public static OpcServerInfo FromAssembly(Assembly assembly)Public Shared Function FromAssembly(assembly As Assembly) As OpcServerInfoParameters
| Name | Type | Description |
|---|---|---|
assembly | Assembly | The Assembly from its Assembly |
Returns
A new instance of the OpcServerInfo class with the information determined using the assembly specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The assembly is a null reference ( |
FromProcess
Determines the server information from the process specified.
public static OpcServerInfo FromProcess(Process process)Public Shared Function FromProcess(process As Process) As OpcServerInfoParameters
| Name | Type | Description |
|---|---|---|
process | Process | The 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 ( |
Returns
A new instance of the OpcServerInfo class with the information determined using the process specified.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The process is a null reference ( |

