Share via


PathIntrinsics.IsValid(String) Method

Definition

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

public:
 bool IsValid(System::String ^ path);
public:
 bool IsValid(Platform::String ^ path);
bool IsValid(std::wstring const & path);
public bool IsValid (string path);
member this.IsValid : string -> bool
Public Function IsValid (path As String) As Boolean

Parameters

path
String

The path to validate.

Returns

true if the object specified by path is syntactically and semantically valid, false otherwise.

Exceptions

If path is null.

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If the provider that the path refers to does not support this operation.

If the provider threw an exception.

Applies to