Compartilhar via


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

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.

Consulte também

Referência

Instrução End