Session Class
Abstract Session base class.
Inheritance Hierarchy
System.Object
TwinCAT.Session
TwinCAT.Ads.AdsSessionBase
Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 6.0.328+39e3229
Syntax
C#
public abstract class Session : ISession,
IConnectionStateProvider, ISymbolServerProvider, IDisposable
The Session type exposes the following members.
Properties
|
Name |
Description |
---|---|---|
|
Gets the communication endpoint address string representation. | |
|
Gets the (established) connection. | |
|
Gets the current Connection state of the Session | |
|
Gets a value indicating whether this Session is disposed. | |
|
Gets the UTC time when the session was established. | |
|
Gets the Session Identifier | |
|
Gets a value indicating whether this instance is connected. | |
|
Gets the name of the session | |
|
Gets the symbol server. |
Methods
|
Name |
Description |
---|---|---|
|
Closes this ISession | |
|
Connects the session. | |
|
Connects the session. | |
|
Disconnects the session from the target. | |
|
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
|
Releases unmanaged and - optionally - managed resources. | |
|
Ensures, that the ISession is connected and returns the IConnection object. | |
|
Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
|
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
|
Serves as the default hash function. (Inherited from Object.) | |
|
Gets the name/string identifier of the session. | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
Creates a shallow copy of the current Object. (Inherited from Object.) | |
|
Handler function connecting the Session. | |
|
Handler function connecting the Session. | |
|
Handles the [E:ConnectionStateChanged] event. | |
|
Handler function creating the ISymbolServer | |
|
Handler function disconnecting the session. | |
|
Handler function getting the address of the session. | |
|
Returns a String that represents this instance. (Overrides Object.ToString..) |
Events
|
Name |
Description |
---|---|---|
|
Occurs when connection status of the IConnectionStateProvider has been changed. |