Compartilhar via


WildcardPatternException Constructors

Definition

Overloads

WildcardPatternException()

Constructs an instance of the WildcardPatternException object.

WildcardPatternException(String)

Constructs an instance of the WildcardPatternException object taking a message parameter to use in constructing the exception.

WildcardPatternException(SerializationInfo, StreamingContext)
Obsolete.

Constructor for class WildcardPatternException for serialization.

WildcardPatternException(String, Exception)

Constructor for class WildcardPatternException that takes both a message to use and an inner exception to include in this object.

WildcardPatternException()

Constructs an instance of the WildcardPatternException object.

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

Applies to

WildcardPatternException(String)

Constructs an instance of the WildcardPatternException object taking a message parameter to use in constructing the exception.

public:
 WildcardPatternException(System::String ^ message);
public:
 WildcardPatternException(Platform::String ^ message);
 WildcardPatternException(std::wstring const & message);
public WildcardPatternException (string message);
new System.Management.Automation.WildcardPatternException : string -> System.Management.Automation.WildcardPatternException
Public Sub New (message As String)

Parameters

message
String

The string to use as the exception message.

Applies to

WildcardPatternException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructor for class WildcardPatternException for serialization.

protected:
 WildcardPatternException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected WildcardPatternException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected WildcardPatternException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.WildcardPatternException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.WildcardPatternException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.WildcardPatternException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.WildcardPatternException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

WildcardPatternException(String, Exception)

Constructor for class WildcardPatternException that takes both a message to use and an inner exception to include in this object.

public:
 WildcardPatternException(System::String ^ message, Exception ^ innerException);
public WildcardPatternException (string message, Exception innerException);
new System.Management.Automation.WildcardPatternException : string * Exception -> System.Management.Automation.WildcardPatternException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The exception message to use.

innerException
Exception

The innerException object to encapsulate.

Applies to