Intrinsics. Is Valid(String) Method
Determines if the MSH 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
The path to validate.
true if the object specified by path is syntactically and semantically valid, false otherwise.
path is null.
path refers to a provider that could not be found.
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.