Събитие
Създаване на интелигентни приложения
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Specifies that a property or procedure can be overridden by an identically named property or procedure in a derived class.
The Overridable
modifier allows a property or method in a class to be overridden in a derived class. The NotOverridable modifier prevents a property or method from being overridden in a derived class. For more information, see Inheritance Basics.
If the Overridable
or NotOverridable
modifier is not specified, the default setting depends on whether the property or method overrides a base class property or method. If the property or method overrides a base class property or method, the default setting is Overridable
; otherwise, it is NotOverridable
.
You can shadow or override to redefine an inherited element, but there are significant differences between the two approaches. For more information, see Shadowing in Visual Basic.
An element that can be overridden is sometimes referred to as a virtual element. If it can be overridden, but does not have to be, it is sometimes also called a concrete element.
You can use Overridable
only in a property or procedure declaration statement.
You cannot specify Overridable
or NotOverridable
for a Private
method.
You cannot specify Overridable
together with MustOverride
, NotOverridable
, or Shared
in the same declaration.
Because an overriding element is implicitly overridable, you cannot combine Overridable
with Overrides
.
The Overridable
modifier can be used in these contexts:
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка:
Събитие
Създаване на интелигентни приложения
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сега