Skip to content

Commit 50159d6

Browse files
committed
Added Path_HasExtension article
1 parent 6633b0c commit 50159d6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Path_HasExtension
2+
3+
`Path_HasExtension` determines whether a path includes a file name extension.
4+
5+
```csharp
6+
Path_HasExtension (
7+
@path NVARCHAR (4000)
8+
)
9+
RETURNS NVARCHAR (4000)
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path to search for an extension.
15+
16+
## Returns
17+
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`.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::Path_HasExtension('C:\Temp\MyTest.txt')
24+
```

docs2/pages/documentations/path/path.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Performs operations on string instances that contain file or directory path info
1515
| [Path_GetRandomFileName()](/path-get-random-file-name) | Returns a random folder name or file name. | [Try it]()|
1616
| [Path_GetTempFileName()](/path-get-temp-file-name) | Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file. | [Try it]()|
1717
| [Path_GetTempPath()](/path-get-temp-path) | Returns the path of the current user's temporary folder. | [Try it]()|
18+
| [Path_GetFileName(path)](/path-get-file-name) | Returns the file name and extension of the specified path string. | [Try it]()|
19+
| [Path_HasExtension(path)](/path-get-has-extension) | Determines whether a path includes a file name extension. | [Try it]()|

0 commit comments

Comments
 (0)