ValidateNotNullAttribute Class

Definition

Validates that the parameters's argument is not null.

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

Constructors

Name Description
ValidateNotNullAttribute()

Methods

Name Description
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)

Applies to