ValidateNotNullOrEmptyAttribute Class

Definition

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.

C++
public ref class ValidateNotNullOrEmptyAttribute sealed : System::Management::Automation::NullValidationAttributeBase
Inheritance
Inheritance
Inheritance
Attributes

Constructors

ValidateNotNullOrEmptyAttribute()

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.

Fields

_checkWhiteSpace

Used to check the type of string validation to perform.

(Inherited from ValidateNotNullOrAttributeBase)

Methods

IsArgumentCollection(Type, Boolean)

Check if the argument type is a collection.

(Inherited from NullValidationAttributeBase)
Validate(Object, EngineIntrinsics)

Verify that the value of arguments is valid.

(Inherited from ValidateArgumentsAttribute)
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.

(Inherited from ValidateNotNullOrAttributeBase)

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0