Click or drag to resize

PathChangeExtention Method

Note: This API is now obsolete.

Changes the extension of the specified path string.

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

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 Compact Framework

Obsolete (compiler warning) in 3.5
See Also