UtilityException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the UtilityException class.
Overloads
UtilityException() |
Initializes a new, default instance of the UtilityException class with the default property values. |
UtilityException(String) |
Initializes a new, default instance of the UtilityException class with the specified error message. |
UtilityException(SerializationInfo, StreamingContext) |
Initializes a new, default instance of the UtilityException class with serialized data. |
UtilityException(String, Exception) |
Initializes a new, default instance of the UtilityException class with the specified error message and inner exception. |
UtilityException()
Initializes a new, default instance of the UtilityException class with the default property values.
public:
UtilityException();
public UtilityException ();
Public Sub New ()
Applies to
UtilityException(String)
Initializes a new, default instance of the UtilityException class with the specified error message.
public:
UtilityException(System::String ^ message);
public UtilityException (string message);
new Microsoft.SqlServer.Management.Utility.UtilityException : string -> Microsoft.SqlServer.Management.Utility.UtilityException
Public Sub New (message As String)
Parameters
- message
- String
Contains a message describing the error.
Applies to
UtilityException(SerializationInfo, StreamingContext)
Initializes a new, default instance of the UtilityException class with serialized data.
protected:
UtilityException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UtilityException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Management.Utility.UtilityException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Management.Utility.UtilityException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Holds the serialized object data about the exception being thrown.
- context
- StreamingContext
Contains contextual information about the source or destination.
Applies to
UtilityException(String, Exception)
Initializes a new, default instance of the UtilityException class with the specified error message and inner exception.
public:
UtilityException(System::String ^ message, Exception ^ innerException);
public UtilityException (string message, Exception innerException);
new Microsoft.SqlServer.Management.Utility.UtilityException : string * Exception -> Microsoft.SqlServer.Management.Utility.UtilityException
Public Sub New (message As String, innerException As Exception)
Parameters
- innerException
- Exception
An Exception that is the cause of the current exception, or a null reference if no inner exception is specified.