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
- Inheritance
Inherited Members
System.Management.Automation.RuntimeException
Constructors
| ParameterBindingException() |
Constructs a ParameterBindingException. |
| ParameterBindingException(String) |
Constructors a ParameterBindingException |
| ParameterBindingException(SerializationInfo, StreamingContext) |
Constructors a ParameterBindingException using serialized data. |
| ParameterBindingException(String, Exception) |
Constructs a ParameterBindingException |
Properties
| CommandInvocation |
Gets the invocation information about the command. |
| ErrorId |
Gets the errorId of this ParameterBindingException |
| Line |
Gets the line in the script at which the error occurred. |
| Message |
Gets the message for the exception |
| Offset |
Gets the offset on the line in the script at which the error occurred. |
| ParameterName |
Gets the name of the parameter that the parameter binding error was encountered on. |
| ParameterType |
Gets the type the parameter is expecting. |
| TypeSpecified |
Gets the Type that was specified as the parameter value |
Methods
| GetObjectData(SerializationInfo, StreamingContext) |
Serializes the exception |