Session Class
Abstract Session base class.
Inheritance Hierarchy
System.Object
TwinCAT.Session
TwinCAT.Ads.AdsSession
Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public abstract class Session : ISession,
IConnectionStateProvider, IDisposable
VB
Public MustInherit Class Session
Implements ISession, IConnectionStateProvider, 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. | |
|
Disconnects the session from the target. | |
|
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
|
Releases unmanaged and - optionally - managed resources. | |
|
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 creating the ISymbolServer | |
|
Handler function disconnecting the session. | |
|
Handler function getting the address of the session. | |
|
Returns a string that represents the current object. (Inherited from Object.) |
Events
|
Name |
Description |
---|---|---|
|
Occurs when connection status of the IConnectionStateProvider has been changed. |