This documentation is archived and is not being maintained.

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)

[GuidAttribute("17730D59-271F-11D7-8BF6-00B0D03DAA06")] 
public interface VCCodeIDLLibrary
/** @attribute GuidAttribute("17730D59-271F-11D7-8BF6-00B0D03DAA06") */ 
public interface VCCodeIDLLibrary
GuidAttribute("17730D59-271F-11D7-8BF6-00B0D03DAA06") 
public interface VCCodeIDLLibrary

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 Samples for Code Model Extensibility for information on how to compile and run this sample.

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
Show: