ProviderNameAmbiguousException Constructors

Definition

Overloads

ProviderNameAmbiguousException()

Constructs a ProviderNameAmbiguousException.

ProviderNameAmbiguousException(String)

Constructs a ProviderNameAmbiguousException.

ProviderNameAmbiguousException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a ProviderNameAmbiguousException using serialized data.

ProviderNameAmbiguousException(String, Exception)

Constructs a ProviderNameAmbiguousException.

ProviderNameAmbiguousException()

Constructs a ProviderNameAmbiguousException.

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

Applies to

ProviderNameAmbiguousException(String)

Constructs a ProviderNameAmbiguousException.

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

Parameters

message
String

The messaged used by the exception.

Applies to

ProviderNameAmbiguousException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Constructs a ProviderNameAmbiguousException using serialized data.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

ProviderNameAmbiguousException(String, Exception)

Constructs a ProviderNameAmbiguousException.

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

Parameters

message
String

The message used by the exception.

innerException
Exception

The exception that caused the error.

Applies to