Udostępnij za pośrednictwem


VCCodeIDLImport.IsCodeType Property

Gets a value indicating whether a CodeType object can be obtained from this object.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'Declaration
ReadOnly Property IsCodeType As Boolean
'Usage
Dim instance As VCCodeIDLImport 
Dim value As Boolean 

value = instance.IsCodeType
bool IsCodeType { get; }
property bool IsCodeType {
    bool get ();
}
function get IsCodeType () : boolean

Property Value

Type: System.Boolean
true if a CodeType object can be obtained; otherwise, false.

Remarks

IsCodeType returns whether the code element is a code type. If it is, then you can query interface or cast it to a CodeType object. This is true when Kind is vsCMElementClass, vsCMElementInterface, vsCMElementDelegate, vsCMElementStruct, or vsCMElementEnum.

.NET Framework Security

See Also

Reference

VCCodeIDLImport Interface

VCCodeIDLImport Members

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples