QuotaExceededException 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 QuotaExceededException class.
Overloads
QuotaExceededException() |
Initializes a new instance of the QuotaExceededException class. |
QuotaExceededException(String) |
Initializes a new instance of the QuotaExceededException class with a specified error message. |
QuotaExceededException(SerializationInfo, StreamingContext) |
Initializes a new instance of the QuotaExceededException class with data that specifies the source and destination of the stream and the information required to serialize the exception. |
QuotaExceededException(String, Exception) |
Initializes a new instance of the QuotaExceededException class with a specified error message and a reference to the inner exception that is the cause of the exception. |
Remarks
If you want to pass an error message to the user, use the QuotaExceededException(String) constructor.
If you want to pass an error message and a reference to the inner exception that is the cause of the exception to the user, use the QuotaExceededException(String, Exception) constructor.
If you want to pass serialization information and streaming context, use the QuotaExceededException(SerializationInfo, StreamingContext) constructor.
QuotaExceededException()
- Source:
- QuotaExceededException.cs
Initializes a new instance of the QuotaExceededException class.
public:
QuotaExceededException();
public QuotaExceededException ();
Public Sub New ()
Applies to
QuotaExceededException(String)
- Source:
- QuotaExceededException.cs
Initializes a new instance of the QuotaExceededException class with a specified error message.
public:
QuotaExceededException(System::String ^ message);
public QuotaExceededException (string message);
new System.ServiceModel.QuotaExceededException : string -> System.ServiceModel.QuotaExceededException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Remarks
Use this constructor when you want to pass an error message to the user. The content of the message parameter should be understandable to the user. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
If you also want to pass a reference to the inner exception that is the cause of the exception as well as a specified error message to the user, use the QuotaExceededException(String, Exception) constructor.
Applies to
QuotaExceededException(SerializationInfo, StreamingContext)
- Source:
- QuotaExceededException.cs
Initializes a new instance of the QuotaExceededException class with data that specifies the source and destination of the stream and the information required to serialize the exception.
protected:
QuotaExceededException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected QuotaExceededException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.QuotaExceededException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.QuotaExceededException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo that contains all the data required to serialize the exception.
- context
- StreamingContext
The StreamingContext that specifies the source and destination of the stream.
Remarks
This constructor is called during deserialization to reconstruct the exception object transmitted over a stream.
Applies to
QuotaExceededException(String, Exception)
- Source:
- QuotaExceededException.cs
Initializes a new instance of the QuotaExceededException class with a specified error message and a reference to the inner exception that is the cause of the exception.
public:
QuotaExceededException(System::String ^ message, Exception ^ innerException);
public QuotaExceededException (string message, Exception innerException);
new System.ServiceModel.QuotaExceededException : string * Exception -> System.ServiceModel.QuotaExceededException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
Remarks
Use this constructor when you want to pass an error message and information about an inner exception up to the user. The content of the message parameter should be understandable to the intended users.
An exception that is thrown as a direct result of a previous exception can include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null
reference (Nothing
in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.