Compartilhar via


NotOverridable (Visual Basic)

Specifies that a property or procedure cannot be overridden in a derived class.

Comentários

NotOverridable is the default setting for a property or procedure that does not itself override a base class property or procedure.

An element that cannot be overridden is sometimes called a sealed element.

Rules

  • Declaration Context. You can use NotOverridable only in a property or procedure declaration statement. You can specify NotOverridable only on a property or procedure that overrides another property or procedure, that is, only in combination with Overrides.

  • Combined Modifiers. Não é possível especificar NotOverridable em conjunto com MustOverride, Overridable, ou Shared na mesma declaração.

The NotOverridable modifier can be used in these contexts:

Instrução Function (Visual Basic)

Propriedade declaração

Instrução Sub (Visual Basic)

Consulte também

Referência

MustOverride (Visual Basic)

Overridable (Visual Basic)

Overrides (Visual Basic)

Conceitos

Sombreamento em Visual Basic

Outros recursos

Palavras-chave (Visual Basic)