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.
Top

  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)
Top

(see also Protected Methods)
 NameDescription
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)
Top

  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)
Top

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

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft