Intrinsics. Is Valid(String) Method
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 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.