Skip to content

Commit 599942e

Browse files
committed
Added Path_IsPathRooted article
1 parent 50159d6 commit 599942e

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

docs2/pages/documentations/path/path-has-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Path_HasExtension (
77
@path NVARCHAR (4000)
88
)
9-
RETURNS NVARCHAR (4000)
9+
RETURNS BIT
1010
```
1111

1212
## Parameters
@@ -15,7 +15,7 @@ RETURNS NVARCHAR (4000)
1515

1616
## Returns
1717

18-
`true` if the characters that follow the last directory separator (\\ or /) or volume separator (:) in the path include a period (.) followed by one or more characters; otherwise, `false`.
18+
`true` if the characters that follow the last directory separator (\\ or /) or volume separator (:) in the path include a period (.) followed by one or more characters; otherwise, `false`.
1919

2020
## Example
2121

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Path_IsPathRooted
2+
3+
`Path_IsPathRooted` gets a value indicating whether the specified path string contains a root.
4+
5+
```csharp
6+
Path_IsPathRooted (
7+
@path NVARCHAR (4000)
8+
)
9+
RETURNS BIT
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path to test.
15+
16+
## Returns
17+
18+
`true` if path contains a root; otherwise, `false`.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::Path_IsPathRooted('C:\Temp\MyTest.txt')
24+
```

docs2/pages/documentations/path/path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Performs operations on string instances that contain file or directory path info
1717
| [Path_GetTempPath()](/path-get-temp-path) | Returns the path of the current user's temporary folder. | [Try it]()|
1818
| [Path_GetFileName(path)](/path-get-file-name) | Returns the file name and extension of the specified path string. | [Try it]()|
1919
| [Path_HasExtension(path)](/path-get-has-extension) | Determines whether a path includes a file name extension. | [Try it]()|
20+
| [Path_IsPathRooted(path)](/path-get-is-path-rooted) | Gets a value indicating whether the specified path string contains a root. | [Try it]()|

0 commit comments

Comments
 (0)