FileInfoExtensionsHasExtension Method
Determines whether the path includes a file extension.
Namespace: DevCase.Extensions.FileInfoExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static bool HasExtension(
this FileInfo sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function HasExtension (
sender As FileInfo
) As Boolean
Dim sender As FileInfo
Dim returnValue As Boolean
returnValue = sender.HasExtension()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static bool HasExtension(
FileInfo^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member HasExtension :
sender : FileInfo -> bool
No code example is currently available or this language may not be supported.
- sender FileInfo
-
The source FileInfo.
Boolean if the path includes a file extension, otherwise,
.
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).