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.

public ref class ValidateNotNullOrEmptyAttribute sealed : System::Management::Automation::NullValidationAttributeBase
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateNotNullOrEmptyAttribute : System.Management.Automation.ValidateArgumentsAttribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateNotNullOrEmptyAttribute : System.Management.Automation.NullValidationAttributeBase
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class ValidateNotNullOrEmptyAttribute : System.Management.Automation.ValidateNotNullOrAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ValidateNotNullOrEmptyAttribute = class
    inherit ValidateArgumentsAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ValidateNotNullOrEmptyAttribute = class
    inherit NullValidationAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ValidateNotNullOrEmptyAttribute = class
    inherit ValidateNotNullOrAttributeBase
Public NotInheritable Class ValidateNotNullOrEmptyAttribute
Inherits ValidateArgumentsAttribute
Public NotInheritable Class ValidateNotNullOrEmptyAttribute
Inherits NullValidationAttributeBase
Public NotInheritable Class ValidateNotNullOrEmptyAttribute
Inherits ValidateNotNullOrAttributeBase
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