Bewerken

Delen via


SyntaxErrorException Constructors

Definition

Initializes a new instance of the SyntaxErrorException class.

Overloads

SyntaxErrorException()

Initializes a new instance of the SyntaxErrorException class.

SyntaxErrorException(String)

Initializes a new instance of the SyntaxErrorException class with the specified string.

SyntaxErrorException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the SyntaxErrorException class with the SerializationInfo and the StreamingContext.

SyntaxErrorException(String, Exception)

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

SyntaxErrorException()

Source:
FilterException.cs
Source:
FilterException.cs
Source:
FilterException.cs

Initializes a new instance of the SyntaxErrorException class.

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

Applies to

SyntaxErrorException(String)

Source:
FilterException.cs
Source:
FilterException.cs
Source:
FilterException.cs

Initializes a new instance of the SyntaxErrorException class with the specified string.

public:
 SyntaxErrorException(System::String ^ s);
public SyntaxErrorException (string? s);
public SyntaxErrorException (string s);
new System.Data.SyntaxErrorException : string -> System.Data.SyntaxErrorException
Public Sub New (s As String)

Parameters

s
String

The string to display when the exception is thrown.

Applies to

SyntaxErrorException(SerializationInfo, StreamingContext)

Source:
FilterException.cs
Source:
FilterException.cs
Source:
FilterException.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 SyntaxErrorException class with the SerializationInfo and the StreamingContext.

protected:
 SyntaxErrorException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SyntaxErrorException (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 SyntaxErrorException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.SyntaxErrorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SyntaxErrorException
[<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.Data.SyntaxErrorException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SyntaxErrorException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The data needed to serialize or deserialize an object.

context
StreamingContext

The source and destination of a specific serialized stream.

Attributes

Applies to

SyntaxErrorException(String, Exception)

Source:
FilterException.cs
Source:
FilterException.cs
Source:
FilterException.cs

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

public:
 SyntaxErrorException(System::String ^ message, Exception ^ innerException);
public SyntaxErrorException (string? message, Exception? innerException);
public SyntaxErrorException (string message, Exception innerException);
new System.Data.SyntaxErrorException : string * Exception -> System.Data.SyntaxErrorException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to