ServerManagerException Constructor (String, Int32)

IIS 7.0
 

Initializes a new instance of the ServerManagerException class that uses the specified error message and error code.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ServerManagerException(
	string errorMessage,
	int errorCode
)

Parameters

errorMessage
Type: System.String

The error message string.

errorCode
Type: System.Int32

The error code that indicates the cause of this exception.

Callers can access the provided errorCode parameter by using the ErrorCode property.

Return to top
Show: