VCCodeVariable.IsShared 属性

定义

获取或设置一个值,该值指示该项是否是静态定义的(也就是说,该项对于此对象类型的所有实例都是公共的),还是仅特定于此对象的。

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

属性值

Boolean

true 如果该方法是共享的,则为;否则为 false

属性

注解

IsShared 返回或设置方法是与类关联还是与类的实例相关联。 请注意,设置此项可能会产生与语言相关的错误,即使 IsShared 成功返回,生成的代码更改也可能不会成功编译。

适用于