Windows Dev Center

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

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)

'Usage
Dim path As String
Dim returnValue As Boolean

returnValue = Me.IsValidPath(path)

protected abstract bool IsValidPath (
	string path
)
protected abstract boolean IsValidPath (
	String path
)
protected abstract function IsValidPath (
	path : String
) : boolean

Parameters

path

The path to the item to be examined.

Return Value

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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft