PathIntrinsics.IsPSAbsolute(String, String) Method

Definition

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 *  -> bool
Public Function IsPSAbsolute (path As String, ByRef driveName As String) As Boolean

Parameters

path
String

The path to check.

driveName
String

If the path is an Msh absolute path then the returned value is the name of the drive that the path is absolute to.

Returns

True if the specified path is an Msh absolute drive-qualified path. False otherwise.

Exceptions

If path is null.

Remarks

A path is an absolute drive-qualified path if it has the following

form:

drive-name:drive-relative-path

Applies to