给定以下代码:
Function GetSomething() As Integer
Using dbConn As New SqlConnection("Connection_String")
dbConn.Open()
Using dbCmd As New SqlCommand(" SELECT SOMETHING ....", dbConn)
Return Integer.Parse(dbCmd.ExecuteScalar())
End Using
dbConn.Close()
End Using
End Function
Return 是否会阻止执行功能块的其余部分,即关闭数据库连接以及在 Using 块完成时调用的隐含 Dispose()?