Initializes a new instance of SmsErrorDialog with an exception, an error message, a caption, and an icon. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim ex As Exception
Dim message As String
Dim caption As String
Dim icon As Icon

Dim instance As New SmsErrorDialog(ex, message, caption, icon)

Syntax

Visual Basic
Public Sub New ( _
		ex As Exception, _
		message As String, _
		caption As String, _
		icon As Icon _
)
C#
public SmsErrorDialog (
		Exception ex,
		string message,
		string caption,
		Icon icon
)
C++
public:
SmsErrorDialog (
		Exception^ ex, 
		String^ message, 
		String^ caption, 
		Icon^ icon
)
J#
public SmsErrorDialog (
		Exception ex, 
		String message, 
		String caption, 
		Icon icon
)
JScript
public function SmsErrorDialog (
		ex : Exception, 
		message : String, 
		caption : String, 
		icon : Icon
)

Parameters

ex

[in] System.Exception object.

message

[in] Error message, represented by the Message property.

caption

[in] Dialog box caption, represented by the Caption property.

icon

[in] System.Drawing.Icon object, represented by the Icon property.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also