Share via


PropertyNotFoundException Constructors

Definition

Overloads

PropertyNotFoundException()

Initializes a new instance of GetValueException with the message set to typeof(GetValueException).FullName.

PropertyNotFoundException(String)

Initializes a new instance of GetValueException setting the message.

PropertyNotFoundException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of GetValueException with serialization parameters.

PropertyNotFoundException(String, Exception)

Initializes a new instance of GetValueException setting the message and innerException.

PropertyNotFoundException()

Initializes a new instance of GetValueException with the message set to typeof(GetValueException).FullName.

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

Applies to

PropertyNotFoundException(String)

Initializes a new instance of GetValueException setting the message.

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

Parameters

message
String

The exception's message.

Applies to

PropertyNotFoundException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Initializes a new instance of GetValueException with serialization parameters.

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

Parameters

info
SerializationInfo

Serialization information.

context
StreamingContext

Streaming context.

Attributes

Applies to

PropertyNotFoundException(String, Exception)

Initializes a new instance of GetValueException setting the message and innerException.

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

Parameters

message
String

The exception's message.

innerException
Exception

The exception's inner exception.

Applies to