Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CanOverride Property (General Extensibility)

Visual Studio .NET 2003

Sets or returns whether or not the function can be overridden.

[Visual Basic .NET]
Public Property CanOverride() As Boolean
[Visual Basic 6]
Property Get CanOverride() As Boolean
Property Let CanOverride( _
   ByVal NewValue As Boolean _
HRESULT __stdcall get_CanOverride(
   /* [out, retval] */ VARIANT_BOOL* retVal
HRESULT __stdcall put_CanOverride(
   /* [in] */ VARIANT_BOOL NewValue
bool CanOverride {get; set;}
[JScript .NET]
public function get CanOverride() : Boolean
public function set CanOverride(
   NewValue : Boolean


The new value indicating the override condition. True if the function can be overriden; False if otherwise.

Return Value

True if the function can be overriden; False if otherwise.


  • For Visual Basic .NET, the function was declared with MustOverride or Overrideable.
  • For Visual C# and Visual C++, the function was declared with the virtual keyword.
  • For JScript, the function was not declared with the static or final keywords; that is, the methods can be implicitly overridden.
    Note   This property is read-only for code elements from Visual Basic .NET source code.

See Also

Applies To: CodeFunction Object | VCCodeFunction Object

© 2015 Microsoft