PlaybackFailureException Constructor (String, String, String, Exception, ILastInvocationInfo, String, Object)
Initializes a new instance of the PlaybackFailureException class by using the provided message, object name, action name, inner exception, last action information, test control name, and exception source object.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
objectName As String, _
actionName As String, _
innerException As Exception, _
lastInfo As ILastInvocationInfo, _
uiTestControl As String, _
exceptionSource As Object _
)
public PlaybackFailureException(
string message,
string objectName,
string actionName,
Exception innerException,
ILastInvocationInfo lastInfo,
string uiTestControl,
Object exceptionSource
)
public:
PlaybackFailureException(
String^ message,
String^ objectName,
String^ actionName,
Exception^ innerException,
ILastInvocationInfo^ lastInfo,
String^ uiTestControl,
Object^ exceptionSource
)
new :
message:string *
objectName:string *
actionName:string *
innerException:Exception *
lastInfo:ILastInvocationInfo *
uiTestControl:string *
exceptionSource:Object -> PlaybackFailureException
public function PlaybackFailureException(
message : String,
objectName : String,
actionName : String,
innerException : Exception,
lastInfo : ILastInvocationInfo,
uiTestControl : String,
exceptionSource : Object
)
Parameters
message
Type: StringThe error message.
objectName
Type: StringThe name of the UI object on which the UI test action failed.
actionName
Type: StringThe name of the UI test action that failed.
innerException
Type: ExceptionThe exception that caused the current exception.
lastInfo
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ILastInvocationInfoAn ILastInvocationInfo objectthat has playback information about invoking the last action.
uiTestControl
Type: StringThe name of the
exceptionSource
Type: ObjectA Object that represents the source of the exception.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
PlaybackFailureException Class