| PathChangeExtension Method |
Changes the extension of a path string.
Namespace: DigitalRune.StoragesAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static string ChangeExtension(
string path,
string extension
)
Public Shared Function ChangeExtension (
path As String,
extension As String
) As String
public:
static String^ ChangeExtension(
String^ path,
String^ extension
)
static member ChangeExtension :
path : string *
extension : string -> string
Parameters
- path
- Type: SystemString
The path information to modify. - extension
- Type: SystemString
The new extension (with or without a leading period). Specify to
remove an existing extension from path.
Return Value
Type:
String
A string containing the modified path information.
See Also