• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Constructor ManagementException

ManagementException()

Default constructor.

Declaration
public ManagementException()

ManagementException(String)

Overloaded constructor, takes the reason as parameter.

Declaration
public ManagementException(string reason)
Parameters
Type Name Description
System.String reason

ManagementException(String, Exception)

Overloaded constructor.

Declaration
public ManagementException(string reason, Exception inner)
Parameters
Type Name Description
System.String reason

Reason for exception

System.Exception inner

Nested exception

ManagementException(Int32)

Overloaded constructor

Declaration
public ManagementException(int errorCode)
Parameters
Type Name Description
System.Int32 errorCode

Assigned ErrorCode

ManagementException(Int32, String)

Overloaded constructor

Declaration
public ManagementException(int errorCode, string reason)
Parameters
Type Name Description
System.Int32 errorCode

Assigned Errorcode

System.String reason

Exception message

ManagementException(Int32, String, String)

Overloaded constructor

Declaration
public ManagementException(int errorCode, string reason, string stackTrace)
Parameters
Type Name Description
System.Int32 errorCode

Assigned ErrorCode

System.String reason

Exception message

System.String stackTrace

Stacktrace

ManagementException(Int32, String, Exception)

Overloaded constructor

Declaration
public ManagementException(int errorCode, string reason, Exception inner)
Parameters
Type Name Description
System.Int32 errorCode

Assigned ErrorCode

System.String reason

Exception message

System.Exception inner

Nested Exception

ManagementException(SerializationInfo, StreamingContext)

Overloaded constructor, manual serialization.

Declaration
protected ManagementException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context
Back to top Copyright © 2017 Alachisoft