Instrução End <keyword> (Visual Basic)
When followed by an additional keyword, terminates the definition of the statement block introduced by that keyword.
End AddHandler
End Class
End Enum
End Event
End Function
End Get
End If
End Interface
End Module
End Namespace
End Operator
End Property
End RaiseEvent
End RemoveHandler
End Select
End Set
End Structure
End Sub
End SyncLock
End Try
End While
End With
Parts
End
Required. Terminates the definition of the programming element.AddHandler
Required to terminate an AddHandler accessor begun by a matching AddHandler statement in a custom Declaração de evento.Class
Required to terminate a class definition begun by a matching Declaração Class (Visual Basic).Enum
Required to terminate an enumeration definition begun by a matching Declaração Enum (Visual Basic).Event
Required to terminate a Custom event definition begun by a matching Declaração de evento.Function
Required to terminate a Function procedure definition begun by a matching Instrução Function (Visual Basic). If execution encounters an End Function statement, control returns to the calling code.Get
Required to terminate a Property procedure definition begun by a matching Declaração Get. If execution encounters an End Get statement, control returns to the statement requesting the property's value.If
Required to terminate an If...Then...Else block definition begun by a matching If statement. See Declaração If...Then... (Visual Basic).Interface
Required to terminate an interface definition begun by a matching Declaração Interface (Visual Basic).Module
Required to terminate a module definition begun by a matching Declaração de Módulo.Namespace
Required to terminate a namespace definition begun by a matching Instrução Namespace.Operator
Required to terminate an operator definition begun by a matching Instrução Operator.Property
Required to terminate a property definition begun by a matching Propriedade declaração.RaiseEvent
Required to terminate a RaiseEvent accessor begun by a matching RaiseEvent statement in a custom Declaração de evento.RemoveHandler
Required to terminate a RemoveHandler accessor begun by a matching RemoveHandler statement in a custom Declaração de evento.Select
Required to terminate a Select...Case block definition begun by a matching Select statement. See Declaração Select...Case (Visual Basic).Set
Required to terminate a Property procedure definition begun by a matching Declaração Set (Visual Basic). If execution encounters an End Set statement, control returns to the statement setting the property's value.Structure
Required to terminate a structure definition begun by a matching Instrução Structure.Sub
Required to terminate a Sub procedure definition begun by a matching Instrução Sub (Visual Basic). If execution encounters an End Sub statement, control returns to the calling code.SyncLock
Required to terminate a SyncLock block definition begun by a matching SyncLock statement. See Instrução SyncLock.Try
Required to terminate a Try...Catch...Finally block definition begun by a matching Try statement. See Instrução Try...Catch...Finally (Visual Basic).While
Required to terminate a While loop definition begun by a matching While statement. See Instrução While...End While (Visual Basic).With
Required to terminate a With block definition begun by a matching With statement. See Declaração With...End With (Visual Basic).
Comentários
The Instrução End, without an additional keyword, terminates execution immediately.
When preceded by a number sign (#), the End keyword terminates a preprocessing block introduced by the corresponding directive.
#End
Required. Terminates the definition of the preprocessing block.#ExternalSource
Required to terminate an external source block begun by a matching Diretiva #ExternalSource.#If
Required to terminate a conditional compilation block begun by a matching #If directive. See Diretivas #If...Then...#Else.#Region
Required to terminate a source region block begun by a matching Diretiva #Region.
Smart Device Developer Notes
The End statement, without an additional keyword, is not supported.