PathChangeExtension Method |
Changes the extension of the specified path string.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static string ChangeExtension(
string path,
string extension
)
Parameters
- path String
- Path string to modify. This string cannot contain any of the characters returned from Crestron.SimplSharp.CrestronIO.Path.GetInvalidPathChars().
- extension String
- The new extension (with or without a leading period). Specify null to remove an existing extension from path.
Return Value
StringA string containing the modified path information.
Exceptions| Exception | Condition |
|---|
| ArgumentException | Path string contains one or more of the invalid characters defined in Crestron.SimplSharp.CrestronIO.Path.GetInvalidPathChars(). |
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also