Partager via


UITestWarningEventArgs Constructor

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

  • 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

See Also

Reference

UITestWarningEventArgs Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

UITestAction