Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ItemCmdletProvider.IsValidPath Method (String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Determines if a path is syntactically and semantically valid for the provider.

Namespace:   System.Management.Automation.Provider
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

protected abstract bool IsValidPath(
	string path
)

Parameters

path
Type: System.String

The path to the item to be examined.

Return Value

Type: System.Boolean

True if the path is syntactically and semantically valid for the provider; otherwise false.

Providers must override this method to verify the syntax and semantics of their paths.

This test should not verify the existence of the item at the path. It should perform only syntactic and semantic validation of the path. For example, for the File System provider, this method should validate that the path should be canonicalized, is syntactically verified, and ensure that the path does not refer to a device.

When implementing this method, the item operated on should be passed to the WriteItemObject method.

For more information about providers, see Windows PowerShell Providers [ps].

Return to top

Community Additions

Show: