UITestWarningEventArgs Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the UITestWarningEventArgs class.
Namespace: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)
Syntax
'Declaration
Public Sub New ( _
action As UITestAction, _
ex As Exception, _
warning As String _
)
'Usage
Dim action As UITestAction
Dim ex As Exception
Dim warning As String
Dim instance As New UITestWarningEventArgs(action, _
ex, warning)
public UITestWarningEventArgs(
UITestAction action,
Exception ex,
string warning
)
public:
UITestWarningEventArgs(
UITestAction^ action,
Exception^ ex,
String^ warning
)
new :
action:UITestAction *
ex:Exception *
warning:string -> UITestWarningEventArgs
public function UITestWarningEventArgs(
action : UITestAction,
ex : Exception,
warning : String
)
Parameters
- action
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UITestAction
A UITestAction object.
- ex
Type: System.Exception
The Exception with information about the problem that occurred.
- warning
Type: System.String
The text that explains the nature of the warning.
.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
UITestWarningEventArgs Members
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace