VCCodeIDLCoClass.IsCodeType 屬性

定義

取得值,其會指出 CodeType 物件是否可以從此物件取得。Gets a value indicating whether a CodeType object can be obtained from this object.

public:
 property bool IsCodeType { bool get(); };
public:
 property bool IsCodeType { bool get(); };
[System.Runtime.InteropServices.DispId(6)]
[get: System.Runtime.InteropServices.DispId(6)]
[get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)]
public bool IsCodeType { get; }
[<System.Runtime.InteropServices.DispId(6)>]
[<get: System.Runtime.InteropServices.DispId(6)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.IsCodeType : bool
Public ReadOnly Property IsCodeType As Boolean

屬性值

Boolean

true 如果 CodeType 可以取得物件,則為,否則會傳回 falsetrue if a CodeType object can be obtained; otherwise returns false.

屬性

備註

IsCodeType 傳回程序代碼元素是否為程式碼類型。IsCodeType returns whether the code element is a code type. 如果是,您可以) (的 QI 查詢介面,或將它轉換成 CodeType 物件。If it is, then you can query interface (QI) or cast it to a CodeType object. KindEnvDTE.vsCMElement.vsCMElementClass 、、 EnvDTE.vsCMElement.vsCMElementInterface EnvDTE.vsCMElement.vsCMElementDelegateEnvDTE.vsCMElement.vsCMElementStructEnvDTE.vsCMElement.vsCMElementEnum 時,就會發生這種情況。This is true when Kind is EnvDTE.vsCMElement.vsCMElementClass, EnvDTE.vsCMElement.vsCMElementInterface, EnvDTE.vsCMElement.vsCMElementDelegate, EnvDTE.vsCMElement.vsCMElementStruct, or EnvDTE.vsCMElement.vsCMElementEnum.

適用於