|
FilterExtensionsWithExtension Method |
Returns if the file has a the extension
Namespace: DrawerBackup.Native.ExpressionsAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static bool WithExtension(
this FileInfo file,
string extension
)
<ExtensionAttribute>
Public Shared Function WithExtension (
file As FileInfo,
extension As String
) As Boolean
public:
[ExtensionAttribute]
static bool WithExtension(
FileInfo^ file,
String^ extension
)
[<ExtensionAttribute>]
static member WithExtension :
file : FileInfo *
extension : string -> bool
Parameters
- file
- Type: System.IOFileInfo
- extension
- Type: SystemString
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FileInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also