Initializes a new instance of the UITestWarningEventArgs class.
Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Sub New ( _
    action As UITestAction, _
    ex As Exception, _
    warning As String _
)
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: Exception- The Exception that has information about the problem that occurred. 
- warning 
 Type: 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.