他に考えられる 2 つの文字列を確認するにはどうすればよいですか... (コード例を参照)
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Input path.
Dim p As String = TextBox1.Text
' Get extension.
Dim extension As String = Path.GetExtension(p)
If extension = ".abc" Or ".xyz" Then
'nothing
Label1.Text = "file type suported"
Else
Label1.Text = "Unsuported file type"
End If
End Sub
End Class