Partager via


ValidateNotNullOrAttributeBase Class

Definition

Validates that the parameters's argument is not null, is not an empty string or a string with white-space characters only, and is not an empty collection.

public abstract class ValidateNotNullOrAttributeBase : System.Management.Automation.NullValidationAttributeBase
type ValidateNotNullOrAttributeBase = class
    inherit NullValidationAttributeBase
Public MustInherit Class ValidateNotNullOrAttributeBase
Inherits NullValidationAttributeBase
Inheritance
Derived

Constructors

ValidateNotNullOrAttributeBase(Boolean)

Validates that the parameters's argument is not null, is not an empty string or a string with white-space characters only, and is not an empty collection.

Fields

_checkWhiteSpace

Used to check the type of string validation to perform.

Methods

IsArgumentCollection(Type, Boolean)

Check if the argument type is a collection.

(Inherited from NullValidationAttributeBase)
Validate(Object, EngineIntrinsics)

Validates that the parameters's argument is not null, is not an empty string, and is not an empty collection. If argument is a collection, each argument is verified. It can also validate that the parameters's argument is not a string that consists only of white-space characters.

Applies to