CSharpTest.Net
IsValidExtension Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace > FileUtils Class : IsValidExtension Method

fileExt

Glossary Item Box

Returns true if the extension provided contains only one '.' at the beginning of the string and does not contain any path or invalid filename characters.

Syntax

Visual Basic (Declaration) 
Public Shared Function IsValidExtension( _
   ByVal fileExt As String _
) As Boolean
C# 
public static bool IsValidExtension( 
   string fileExt
)

Parameters

fileExt

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys