Skip to content

Commit ef3e5ba

Browse files
committed
Added Path_ChangeExtension article
1 parent aa43153 commit ef3e5ba

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Path_ChangeExtension
2+
3+
`Path_ChangeExtension` returns a new string in which all occurrences of a specified `oldValye` Unicode character or String in the `source` string are replaced with another specified `newValue` Unicode character or String.
4+
5+
```csharp
6+
Path_ChangeExtension (
7+
@path NVARCHAR (4000),
8+
@extension NVARCHAR (4000)
9+
)
10+
RETURNS NVARCHAR (4000)
11+
```
12+
13+
## Parameters
14+
15+
- **path**: The path information to modify.
16+
- **extension**: The new extension (with or without a leading period). Specify `null` to remove an existing extension from `path`.
17+
18+
## Returns
19+
20+
- The modified path information.
21+
22+
## Example
23+
24+
```csharp
25+
SELECT SQLNET::Path_ChangeExtension('C:\Temp\MyTest.txt', '.ext')
26+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Path
2+
3+
Performs operations on string instances that contain file or directory path information. These operations are performed in a cross-platform manner.
4+
5+
| Name | Description | Example |
6+
| :--- | :---------- | :------ |
7+
| [Path_ChangeExtension(path, extension)](/path-change-extension) | Changes the extension of a path string. | [Try it]()|

0 commit comments

Comments
 (0)