PathIntrinsics.IsValid(String) Method
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.
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.