ValidateNotNullOrEmptyAttribute Class

Definition

Validates that the parameters's argument is not null, is not an empty string, and is not an empty collection.

public ref class ValidateNotNullOrEmptyAttribute sealed : System::Management::Automation::NullValidationAttributeBase
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class ValidateNotNullOrEmptyAttribute : System.Management.Automation.NullValidationAttributeBase
type ValidateNotNullOrEmptyAttribute = class
    inherit NullValidationAttributeBase
Public NotInheritable Class ValidateNotNullOrEmptyAttribute
Inherits NullValidationAttributeBase
Inheritance
Attributes

Constructors

ValidateNotNullOrEmptyAttribute()

Methods

IsArgumentCollection(Type, Boolean)

Check if the argument type is a collection.

(Inherited from NullValidationAttributeBase)
Validate(Object, EngineIntrinsics)

Overridden by subclasses to implement the validation of the parameter arguments

(Inherited from ValidateArgumentsAttribute)

Applies to