Export (0) Print
Expand All
ID
Top
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 _
) 
[C++]
HRESULT __stdcall get_CanOverride(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
HRESULT __stdcall put_CanOverride(
   /* [in] */ VARIANT_BOOL NewValue
);
[C#]
bool CanOverride {get; set;}
[JScript .NET]
public function get CanOverride() : Boolean
public function set CanOverride(
   NewValue : Boolean
)

Parameters

NewValue
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.

Remarks

  • 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

Show:
© 2014 Microsoft