ValidateNotNullOrEmptyAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
ValidateNotNullOrEmptyAttribute
- Inheritance
-
ValidateNotNullOrEmptyAttribute
- 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 |
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) |