Skip to content

Commit dd8ebcd

Browse files
committed
Added Path_GetPathRoot article
1 parent 5b5753b commit dd8ebcd

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Path_GetPathRoot
2+
3+
`Path_GetPathRoot` returns the root directory information of the specified path.
4+
5+
```csharp
6+
Path_GetPathRoot (
7+
@path NVARCHAR (4000)
8+
)
9+
RETURNS NVARCHAR (4000)
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path from which to obtain root directory information.
15+
16+
## Returns
17+
18+
The root directory of `path`, or `null` if `path` is `null`, or an empty string if `path` does not contain root directory information.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::Path_GetPathRoot('MyTest.txt')
24+
```

docs2/pages/documentations/path/path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Performs operations on string instances that contain file or directory path info
1111
| [Path_GetFileName(path)](/path-get-file-name) | Returns the file name and extension of the specified path string. | [Try it]()|
1212
| [Path_GetFileNameWithoutExtension(path)](/path-get-file-name-without-extension) | Returns the file name and extension of the specified path string without the extension. | [Try it]()|
1313
| [Path_GetFullPath(path)](/path-get-full-path) | Returns the absolute path for the specified path string. | [Try it]()|
14+
| [Path_GetPathRoot(path)](/path-get-path-root) | Returns the root directory information of the specified path. | [Try it]()|

0 commit comments

Comments
 (0)