ParameterBindingException ParameterBindingException ParameterBindingException Class

Definition

The exception thrown if the specified value can not be bound parameter of a command.

public class ParameterBindingException : System.Management.Automation.RuntimeException
type ParameterBindingException = class
    inherit RuntimeException
Public Class ParameterBindingException
Inherits RuntimeException
Inheritance
ParameterBindingExceptionParameterBindingExceptionParameterBindingException

Constructors

ParameterBindingException() ParameterBindingException() ParameterBindingException()

Constructs a ParameterBindingException.

ParameterBindingException(SerializationInfo, StreamingContext) ParameterBindingException(SerializationInfo, StreamingContext) ParameterBindingException(SerializationInfo, StreamingContext)

Constructors a ParameterBindingException using serialized data.

ParameterBindingException(String) ParameterBindingException(String) ParameterBindingException(String)

Constructors a ParameterBindingException

ParameterBindingException(String, Exception) ParameterBindingException(String, Exception) ParameterBindingException(String, Exception)

Constructs a ParameterBindingException

Properties

CommandInvocation CommandInvocation CommandInvocation

Gets the invocation information about the command.

ErrorId ErrorId ErrorId

Gets the errorId of this ParameterBindingException

ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
Line Line Line

Gets the line in the script at which the error occurred.

Message Message Message

Gets the message for the exception

Offset Offset Offset

Gets the offset on the line in the script at which the error occurred.

ParameterName ParameterName ParameterName

Gets the name of the parameter that the parameter binding error was encountered on.

ParameterType ParameterType ParameterType

Gets the type the parameter is expecting.

StackTrace StackTrace StackTrace Inherited from RuntimeException
TypeSpecified TypeSpecified TypeSpecified

Gets the Type that was specified as the parameter value

WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception

Applies to