VCCodeFunction.CanOverride 属性

定义

获取或设置一个值,该值指示是否可以重写函数。

public:
 property bool CanOverride { bool get(); void set(bool value); };
public:
 property bool CanOverride { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(50)]
public bool CanOverride { [System.Runtime.InteropServices.DispId(50)] get; [System.Runtime.InteropServices.DispId(50)] set; }
[<System.Runtime.InteropServices.DispId(50)>]
[<get: System.Runtime.InteropServices.DispId(50)>]
[<set: System.Runtime.InteropServices.DispId(50)>]
member this.CanOverride : bool with get, set
Public Property CanOverride As Boolean

属性值

Boolean

true 如果函数可以重写,则为; 否则为。 false 否则为。

属性

注解

  • 对于 Visual Basic,该函数是用或声明的 MustOverride Overrideable

  • 对于 Visual c # 和 Visual C++,函数是用虚关键字声明的。

  • 对于 JScript,函数不是用 static 或 final 关键字声明的;也就是说,可以隐式重写方法。

适用于