Namespace: Opc.UaFx.Server
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcServerInfo type exposes the following members.
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.
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.
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.
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.
Gets the name of the company which offers the server.
C#
public string CompanyName { get; }
Property Value
The name of the company which offers the server.
Gets the name of the product which implements the server.
C#
public string ProductName { get; }
Property Value
The name of the product which implements the server.
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
A new instance of the OpcServerInfo class with the information determined using the assembly
specified.
Exceptions
The assembly
is a null reference (Nothing in Visual Basic).
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
A new instance of the OpcServerInfo class with the information determined using the process
specified.
Exceptions
The process
is a null reference (Nothing in Visual Basic).