AdsErrorException.Create Method (String, AdsErrorCode)

Creates the AdsErrorException

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

Syntax

C#

public static AdsErrorException Create(
    string message,
    AdsErrorCode adsErrorCode
)

VB

Public Shared Function Create ( 
    message As String,
    adsErrorCode As AdsErrorCode
) As AdsErrorException

Parameters

message

Type: System.String
The message.

adsErrorCode

Type: TwinCAT.Ads.AdsErrorCode
The ads error code.

Return Value

Type: AdsErrorException
AdsErrorException.

Reference

AdsErrorException Class

Create Overload

TwinCAT.Ads Namespace