Intrinsics. Is PSAbsolute(String, 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 given path is a drive-qualified absolute path.
public: bool IsPSAbsolute(System::String ^ path, [Runtime::InteropServices::Out] System::String ^ % driveName);
bool IsPSAbsolute(std::wstring const & path, [Runtime::InteropServices::Out] std::wstring const & & driveName);
public bool IsPSAbsolute (string path, out string driveName);
member this.IsPSAbsolute : string * string -> bool
Public Function IsPSAbsolute (path As String, ByRef driveName As String) As Boolean
The path to check.
If the path is an Msh absolute path then the returned value is the name of the drive that the path is absolute to.
True if the specified path is an Msh absolute drive-qualified path. False otherwise.
path is null.
A path is an absolute drive-qualified path if it has the following form: drive-name:drive-relative-path