Udostępnij za pośrednictwem


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

ValidateNotNullAttribute()

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)

Applies to