Click or drag to resize

PathChangeExtension Method

Changes the extension of the specified path string.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public 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

String
A string containing the modified path information.
Exceptions
ExceptionCondition
ArgumentExceptionPath 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