Gets the file name part from localized resource file. E.g. My file with.fancy-characters.fr-FR.resx should return "My file with.fancy-characters".

Namespace: DotNetNuke.Services.Localization
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string GetFileNameFromLocalizedResxFile(
	this string fileName
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetFileNameFromLocalizedResxFile ( 
	fileName As String
) As String

Parameters

fileName
Type: System..::..String
Name of the file.

Return Value

File name stripped of culture code or extension

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also