ScriptRequiresException Members

The exception that is thrown when a script cannot run because the requirements that are specified by the script's #requires statements are not met.

The following tables list the members exposed by the ScriptRequiresException type.

(see also Protected Constructors)
 NameDescription
 ScriptRequiresExceptionOverloaded. Initializes a new instance of the ScriptRequiresException class. The variants of this constructor can be used to create an empty object, an object that contains an exception message, and more.
Top

  Name Description
  ScriptRequiresException Overloaded. Initializes a new instance of the ScriptRequiresException class. The variants of this constructor can be used to create an empty object, an object that contains an exception message, and more.
Top

(see also Protected Properties)
 NameDescription
public propertyCommandNameGets the name of the command that contains the #requires statement.
public propertyData  (Inherited from Exception)
public propertyErrorRecord  Gets the error record associated with the exception. (Inherited from RuntimeException)
public propertyHelpLink  (Inherited from Exception)
public propertyInnerException  (Inherited from Exception)
public propertyMessage  (Inherited from Exception)
public propertyMissingPSSnapInsGets the names of the missing snap-ins based on the #requires statement.
public propertyRequiresPSVersionGets the Windows PowerShell version that the script requires.
public propertyRequiresShellIdGets the identifier of the required shell as specified in the #requires statement.
public propertyRequiresShellPathGets the path to the shell specified in the #requires statement.
public propertySource  (Inherited from Exception)
public propertyStackTrace  Overridden. Gets the stack trace associated with the exception. (Inherited from Exception)
public propertyTargetSite  (Inherited from Exception)
public propertyWasThrownFromThrowStatement  Gets or sets a value that indicates whether the exception was thrown from a throw statement. (Inherited from RuntimeException)
Top

  Name Description
protected property HResult  (Inherited from Exception)
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetBaseException  (Inherited from Exception)
public methodGetHashCode  (Inherited from Object)
public methodGetObjectDataOverridden. Provides serialization functionality for the ISerializable interface.
public methodGetType  (Inherited from Exception)
public methodToString  Overridden. (Inherited from Object)
Top

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
Top

  Name Description
protected event SerializeObjectState  (Inherited from Exception)
Top


Show:
© 2015 Microsoft