PlaybackFailureException Constructor (String, String, Exception, ILastInvocationInfo, String, Object)
Initializes a new instance of the PlaybackFailureException class by using the default message, as well as the provided object name, action name, inner exception, last action information, control, and source of the exception.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Public Sub New ( _
objectName As String, _
actionName As String, _
innerException As Exception, _
lastInfo As ILastInvocationInfo, _
uiTestControl As String, _
exceptionSource As Object _
)
public PlaybackFailureException(
string objectName,
string actionName,
Exception innerException,
ILastInvocationInfo lastInfo,
string uiTestControl,
Object exceptionSource
)
public:
PlaybackFailureException(
String^ objectName,
String^ actionName,
Exception^ innerException,
ILastInvocationInfo^ lastInfo,
String^ uiTestControl,
Object^ exceptionSource
)
new :
objectName:string *
actionName:string *
innerException:Exception *
lastInfo:ILastInvocationInfo *
uiTestControl:string *
exceptionSource:Object -> PlaybackFailureException
public function PlaybackFailureException(
objectName : String,
actionName : String,
innerException : Exception,
lastInfo : ILastInvocationInfo,
uiTestControl : String,
exceptionSource : Object
)
Parameters
- objectName
Type: System.String
The name of the UI object on which the UI test action failed.
- actionName
Type: System.String
The name of the UI test action that failed.
- innerException
Type: System.Exception
The exception that caused the current exception.
- lastInfo
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ILastInvocationInfo
An ILastInvocationInfo object that has playback information about the last action invocation.
- uiTestControl
Type: System.String
The name of the test control.
- exceptionSource
Type: System.Object
A 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
PlaybackFailureException Overload