Bewerken

Delen via


InvalidFilterCriteriaException Constructors

Definition

Initializes an instance of the InvalidFilterCriteriaException class.

Overloads

InvalidFilterCriteriaException()

Initializes a new instance of the InvalidFilterCriteriaException class with the default properties.

InvalidFilterCriteriaException(String)

Initializes a new instance of the InvalidFilterCriteriaException class with the given HRESULT and message string.

InvalidFilterCriteriaException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the InvalidFilterCriteriaException class with the specified serialization and context information.

InvalidFilterCriteriaException(String, Exception)

Initializes a new instance of the InvalidFilterCriteriaException class with a specified error message and a reference to the inner exception that is the cause of this exception.

InvalidFilterCriteriaException()

Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs

Initializes a new instance of the InvalidFilterCriteriaException class with the default properties.

public:
 InvalidFilterCriteriaException();
public InvalidFilterCriteriaException ();
Public Sub New ()

Remarks

This constructor initializes an instance of InvalidFilterCriteriaException with an empty message string and the root cause exception set to null.

This constructor sets the properties of the Exception object as follows:

Property Value
InnerException null
Message The empty string ("").

Applies to

InvalidFilterCriteriaException(String)

Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs

Initializes a new instance of the InvalidFilterCriteriaException class with the given HRESULT and message string.

public:
 InvalidFilterCriteriaException(System::String ^ message);
public InvalidFilterCriteriaException (string? message);
public InvalidFilterCriteriaException (string message);
new System.Reflection.InvalidFilterCriteriaException : string -> System.Reflection.InvalidFilterCriteriaException
Public Sub New (message As String)

Parameters

message
String

The message text for the exception.

Remarks

An exception that is thrown as a direct result of a previous exception should 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 null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of InvalidFilterCriteriaException.

Property Value
InnerException null
Message The error message string.

Applies to

InvalidFilterCriteriaException(SerializationInfo, StreamingContext)

Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initializes a new instance of the InvalidFilterCriteriaException class with the specified serialization and context information.

protected:
 InvalidFilterCriteriaException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected InvalidFilterCriteriaException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected InvalidFilterCriteriaException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Reflection.InvalidFilterCriteriaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.InvalidFilterCriteriaException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Reflection.InvalidFilterCriteriaException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.InvalidFilterCriteriaException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo object that contains the information required to serialize this instance.

context
StreamingContext

A StreamingContext object that contains the source and destination of the serialized stream associated with this instance.

Attributes

Applies to

InvalidFilterCriteriaException(String, Exception)

Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs
Source:
InvalidFilterCriteriaException.cs

Initializes a new instance of the InvalidFilterCriteriaException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 InvalidFilterCriteriaException(System::String ^ message, Exception ^ inner);
public InvalidFilterCriteriaException (string? message, Exception? inner);
public InvalidFilterCriteriaException (string message, Exception inner);
new System.Reflection.InvalidFilterCriteriaException : string * Exception -> System.Reflection.InvalidFilterCriteriaException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should 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 null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of InvalidFilterCriteriaException.

Property Value
InnerException The inner exception reference.
Message The error message string.

See also

Applies to