ProviderNameAmbiguousException Class

Definition

ProviderNameAmbiguousException occurs when more than one provider exists for a given name and the request did not contain the PSSnapin name qualifier.

C++
public ref class ProviderNameAmbiguousException : System::Management::Automation::ProviderNotFoundException
Inheritance
Attributes

Constructors

ProviderNameAmbiguousException()

Constructs a ProviderNameAmbiguousException.

ProviderNameAmbiguousException(SerializationInfo, StreamingContext)
Obsolete.

Constructs a ProviderNameAmbiguousException using serialized data.

ProviderNameAmbiguousException(String, Exception)

Constructs a ProviderNameAmbiguousException.

ProviderNameAmbiguousException(String)

Constructs a ProviderNameAmbiguousException.

Properties

ErrorRecord

Gets the error record information for this exception.

(Inherited from SessionStateException)
ItemName

Gets the name of session state object the error occurred on.

(Inherited from SessionStateException)
PossibleMatches

Gets the information of the providers which might match the specified provider name.

SessionStateCategory

Gets the category of session state object the error occurred on.

(Inherited from SessionStateException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

(Inherited from SessionStateException)

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0