Export (0) Print
Expand All

ValidateScriptAttribute Members

Defines an attribute that uses a script to validate a parameter of any Windows PowerShell function. (This attribute cannot be used to validate the argument of a cmdlet parameter.) This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

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

  Name Description
  ValidateScriptAttribute Initializes a new instance of the ValidateScriptAttribute class that contains the script that is used to validate the parameter argument. This constructor is introduced by Windows PowerShell 2.0.

  Name Description
public property ScriptBlock Gets the script that is used to validate the parameter argument. This property is introduced in Windows PowerShell 2.0.
public property TypeId  (Inherited from Attribute)

(see also Protected Methods)
public methodEquals  Overridden. (Inherited from Object)
public methodGetHashCode  Overridden. (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodIsDefaultAttribute  (Inherited from Attribute)
public methodMatch  (Inherited from Attribute)
public methodToString  (Inherited from Object)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method Validate  Overridden. Validates the specified enumerated arguments by calling ValidateArgumentsAttribute.Validate for each argument. (Inherited from ValidateArgumentsAttribute)
protected method ValidateElement  When overridden in a derived class, validates a specified argument value of an enumerated argument. (Inherited from ValidateEnumeratedArgumentsAttribute)

  Name Description
  GetIDsOfNames  (Inherited from Attribute)
  GetTypeInfo  (Inherited from Attribute)
  GetTypeInfoCount  (Inherited from Attribute)
  Invoke  (Inherited from Attribute)

Send comments about this topic to Microsoft.
© 2014 Microsoft