PathChangeExtention Method |
Note: This API is now obsolete.
Changes the extension of the specified path string.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax[ObsoleteAttribute("Use ChangeExtension() instead")]
public static string ChangeExtention(
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 Compact Framework
Obsolete (compiler warning) in 3.5
See Also