Freigeben über


ValidateDriveAttribute Class

Definition

Validates that the path has an approved root drive.

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

Constructors

ValidateDriveAttribute(String[])

Initializes a new instance of the ValidateDriveAttribute class.

Properties

ValidRootDrives

Gets the values in the set.

Methods

Validate(Object, EngineIntrinsics)

Validates path argument.

Applies to