Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidateLengthAttribute Members

Defines an attribute that uses minimum and maximum limits to validate the number of characters in a cmdlet parameter argument. (This attribute can also be used by Windows PowerShell functions.) This class cannot be inherited.

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

  Name Description
  ValidateLengthAttribute Initializes a new instance of the ValidateLengthAttribute class with the minimum and maximum lengths for the cmdlet parameter arguments.
Top

  Name Description
public property MaxLength Gets the maximum number of characters (length) that is allowed for the cmdlet parameter argument.
public property MinLength Gets the minimum number of characters (length) that is allowed for the cmdlet parameter argument.
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

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
protected methodValidate  Overridden. Validates the specified enumerated arguments by calling ValidateArgumentsAttribute.Validate for each argument. (Inherited from ValidateArgumentsAttribute)
protected methodValidateElement  When overridden in a derived class, validates a specified argument value of an enumerated argument. (Inherited from ValidateEnumeratedArgumentsAttribute)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

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


Show:
© 2015 Microsoft