Delen via


PSNotSupportedException Class

Definition

This is a wrapper for exception class NotSupportedException which provides additional information via IContainsErrorRecord.

public ref class PSNotSupportedException : NotSupportedException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class PSNotSupportedException : NotSupportedException, System.Management.Automation.IContainsErrorRecord
public class PSNotSupportedException : NotSupportedException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type PSNotSupportedException = class
    inherit NotSupportedException
    interface IContainsErrorRecord
type PSNotSupportedException = class
    inherit NotSupportedException
    interface IContainsErrorRecord
Public Class PSNotSupportedException
Inherits NotSupportedException
Implements IContainsErrorRecord
Inheritance
PSNotSupportedException
Attributes
Implements

Remarks

Instances of this exception class are usually generated by the PowerShell Engine. It is unusual for code outside the PowerShell Engine to create an instance of this class.

Constructors

PSNotSupportedException()

Initializes a new instance of the PSNotSupportedException class.

PSNotSupportedException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the PSNotSupportedException class using data serialized via ISerializable

PSNotSupportedException(String, Exception)

Initializes a new instance of the PSNotSupportedException class.

PSNotSupportedException(String)

Initializes a new instance of the PSNotSupportedException class.

Properties

ErrorRecord

Additional information about the error.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to