AdsConnection.ReadAnyString Method (Int32, Int32, Encoding)

Reads the string.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public string ReadAnyString(
    int variableHandle,
    int len,
    Encoding encoding
)

VB

Public Function ReadAnyString ( 
    variableHandle As Integer,
    len As Integer,
    encoding As Encoding
) As String

Parameters

variableHandle

Type: System.Int32
The variable handle.

len

Type: System.Int32
The length.

encoding

Type: System.Text.Encoding
The encoding.

Return Value

Type: String
System.String.

Implements

IAdsAnyAccess.ReadAnyString(Int32, Int32, Encoding)

Exceptions

Exception

Condition

ObjectDisposedException

ObjectDisposedException

Remarks

ASCII Encoding expected

Reference

AdsConnection Class

ReadAnyString Overload

TwinCAT.Ads Namespace