Change an extension

Namespace: Contracts.IO
Assembly: Contracts (in Contracts.dll)

Public Shared Function ChangeExtension( _ 
ByVal path As String, _ 
ByVal new_extension As String
) As String
This language is not supported or no code example is available.
public static string ChangeExtension( 
string path
string new_extension 
)
This language is not supported or no code example is available.
public:  
static String^ ChangeExtension( 
String^ path
String^ new_extension 
)
This language is not supported or no code example is available.
public static function ChangeExtension( 
path : String
new_extension : String 
) : String;
This language is not supported or no code example is available.

Parameters

path
Type: string

<default>

new_extension
Type: string

<default>

Return Value

Type: string

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1