Condividi tramite


VCCodeIDLLibrary Interface

An object defining a library element in an .idl file.

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

Syntax

<GuidAttribute("17730D59-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeIDLLibrary

Dim instance As VCCodeIDLLibrary
[GuidAttribute("17730D59-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeIDLLibrary
[GuidAttribute(L"17730D59-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeIDLLibrary
public interface VCCodeIDLLibrary

Remarks

The VCCodeIDLLibrary object represents a library code element from the .idl file of the parent solution. Primarily, the object is used to access or modify the elements of an existing library code element.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Examples

This example retrieves the first library code statement and displays it in a message box.

Sub GetFirstIDLLibrary()
    Dim vcCM As VCCodeModel
    Dim vcIDLLibrary As VCCodeIDLLibrary
    vcCM = DTE.Solution.Item(1).CodeModel
    vcIDLLibrary = vcCM.IDLLibraries.Item(1)
    MsgBox(vcIDLLibrary.DisplayName)
End Sub

See Also

Reference

VCCodeIDLLibrary Members

Microsoft.VisualStudio.VCCodeModel Namespace