Connection Class

Connection specifications for file access.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class Connection : IConnection, IExtensibleDataObject
Inheritance
Object    Connection
Implements
IConnection, IExtensibleDataObject

Constructors

ConnectionInitializes a new instance of the Connection class

Properties

BridgeName Name of the bridge to use for saving and/or reading
ExtensionData Data from an extended DataContract not recognized here
FilePath FilePath including name for the file to store data in or read data from
Options Options to the connection as key-value pairs. Keys are case-sensitive (do always lowercase or similar).

Methods

BridgeFromExtension Get a bridge name by using the extension of the file (without the dot).
Clone Clone this object. It returns a deep copy of the file path, but just transfers the dictionary.
Create(FilePath) Create a new connection based on the filename. The BridgeName will be the extension of the file (without the dot).
Create(String) Create a new connection based on the filename. The BridgeName will be the extension of the file (without the dot).
Create(String, String) Create a new connection based on the filename and an simulation ID.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

SetupParametersStr String used in Options for storing command line parameters.

Extension Methods

IsBridge Return true if bridge is bridgeName
(Defined by ConnectionExtension)

See Also