C# Class Opc.Ua.Configuration.PseudoComServer

A class that describes a Pseudo COM server which
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
CreateProgIdFromUrl ( ComSpecification specification, string uri ) : string

Creates a ProgId from a URI

Delete ( string filePath ) : string

Deletes the configured endpoints conatined a collection saved on disk.

Delete ( System.Guid clsid ) : void

Deletes the pseudoserver from the registry.

Enumerate ( ) : List

Returns the UA COM Pseudo-servers registered on the local computer.

Export ( string filePath ) : void

Exports COM endpoint configurations to the specified file.

GetServerHostClsid ( ComSpecification specification ) : System.Guid

Returns the CLSID of the host process to use for the specification.

Import ( string filePath ) : string

Imports the configured endpoints from a collection saved on disk.

Load ( System.Guid clsid ) : ConfiguredEndpoint

Loads the endpoint information from the registry.

Save ( ConfiguredEndpoint endpoint ) : void

Saves the endpoint information in the registry.

Private Methods

Method Description
DeleteConfiguredEndpointFile ( System.Guid clsid ) : void

Deletes the file containing the configured endpoint.

GetDescription ( System.Guid server ) : string

Returns the description

LoadConfiguredEndpoint ( System.Guid clsid ) : ConfiguredEndpoint

Reads the UA endpoint information associated the CLSID

LoadConfiguredEndpointFromFile ( System.Guid clsid ) : ConfiguredEndpoint

Reads the UA endpoint information associated the CLSID

LoadConfiguredEndpointFromRegistry ( System.Guid clsid ) : ConfiguredEndpoint

Reads the ConfiguredEndpoint from the registry.

SaveConfiguredEndpoint ( System.Guid clsid, ConfiguredEndpoint endpoint ) : void

Saves the UA endpoint information associated the CLSID.

SaveConfiguredEndpointToFile ( System.Guid clsid, ConfiguredEndpoint endpoint ) : void

Saves the UA endpoint information associated the CLSID.

SaveConfiguredEndpointToRegistry ( System.Guid clsid, ConfiguredEndpoint endpoint ) : void

Saves the ConfiguredEndpoint from the registry.

Method Details

CreateProgIdFromUrl() public static method

Creates a ProgId from a URI
public static CreateProgIdFromUrl ( ComSpecification specification, string uri ) : string
specification ComSpecification
uri string
return string

Delete() public static method

Deletes the configured endpoints conatined a collection saved on disk.
public static Delete ( string filePath ) : string
filePath string The file path.
return string

Delete() public static method

Deletes the pseudoserver from the registry.
public static Delete ( System.Guid clsid ) : void
clsid System.Guid
return void

Enumerate() public static method

Returns the UA COM Pseudo-servers registered on the local computer.
public static Enumerate ( ) : List
return List

Export() public static method

Exports COM endpoint configurations to the specified file.
public static Export ( string filePath ) : void
filePath string The file path.
return void

GetServerHostClsid() public static method

Returns the CLSID of the host process to use for the specification.
public static GetServerHostClsid ( ComSpecification specification ) : System.Guid
specification ComSpecification
return System.Guid

Import() public static method

Imports the configured endpoints from a collection saved on disk.
public static Import ( string filePath ) : string
filePath string The file path.
return string

Load() public static method

Loads the endpoint information from the registry.
public static Load ( System.Guid clsid ) : ConfiguredEndpoint
clsid System.Guid
return ConfiguredEndpoint

Save() public static method

Saves the endpoint information in the registry.
public static Save ( ConfiguredEndpoint endpoint ) : void
endpoint ConfiguredEndpoint
return void