ValidateSetAttribute Class

Definition

Validates that each parameter argument is present in a specified set

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class ValidateSetAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
Inheritance
Attributes

Inherited Members

System.Management.Automation.ValidateEnumeratedArgumentsAttribute

Constructors

ValidateSetAttribute(String[])

Initializes a new instance of the ValidateSetAttribute class

Properties

IgnoreCase

Gets a flag specifying if we should ignore the case when performing string comparison. The default is true.

ValidValues

Gets the values in the set