Session Class
Abstract Session base class.
Inheritance Hierarchy
SystemObject
TwinCATSession
TwinCAT.AdsAdsSessionBase
Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public abstract class Session : ISession,
IConnectionStateProvider, ISymbolServerProvider, IDisposableThe 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 session settings. | |
|
|
Gets the symbol server. |
Methods
|
|
Name |
Description |
|---|---|---|
|
|
Closes this ISession | |
|
|
Connects the session. | |
|
|
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. | |
|
|
Allows an object to try to free resources and perform other
cleanup operations before it is reclaimed by garbage
collection. | |
|
|
Serves as the default hash function. | |
|
|
Gets the name/string identifier of the session. | |
|
|
Gets the Type of the current
instance. | |
|
|
Creates a shallow copy of the current Object. | |
|
|
Handler function connecting the Session. | |
|
|
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. |
Events
|
|
Name |
Description |
|---|---|---|
|
|
Occurs when connection status of the IConnectionStateProvider has been changed. |
- Session.AddressSpecifier Property
- Session.Connection Property
- Session.ConnectionState Property
- Session.Disposed Property
- Session.EstablishedAt Property
- Session.Id Property
- Session.IsConnected Property
- Session.Name Property
- Session.SymbolServer Property
- Session.Close Method
- Session.Connect Method
- Session.Disconnect Method
- Session.Dispose Method
- Session.Dispose Method (Boolean)
- Session.GetSessionName Method
- Session.OnConnect Method
- Session.OnCreateSymbolServer Method
- Session.OnDisconnect Method
- Session.OnGetAddress Method
- Session.EnsureConnection Method
- Session.OnConnectionStateChanged Method
- Session.ToString Method
- Session.ConnectAsync Method
- Session.OnConnectAsync Method
- Session.ConnectionStateChanged Event