VCCodeIDLLibrary.IDLImportLibs Eigenschaft

Definition

Ruft die Auflistung der importlib -Anweisungen aus der IDL-Datei des übergeordneten Objekts ab.

public:
 property EnvDTE::CodeElements ^ IDLImportLibs { EnvDTE::CodeElements ^ get(); };
[System.Runtime.InteropServices.DispId(586)]
public EnvDTE.CodeElements IDLImportLibs { [System.Runtime.InteropServices.DispId(586)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(586)>]
[<get: System.Runtime.InteropServices.DispId(586)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.IDLImportLibs : EnvDTE.CodeElements
Public ReadOnly Property IDLImportLibs As CodeElements

Eigenschaftswert

CodeElements

Eine CodeElements-Auflistung.

Attribute

Beispiele

In diesem Beispiel werden die Namen der einzelnen importlib Code Elemente in der Projekt Mappe angezeigt.

Sub AllImportLibs()  
    Dim codeModel As VCCodeModel  
    codeModel = DTE.Solution.Item(1).CodeModel  
    Dim vcImpLib As VCCodeIDLImportLib  
    For Each vcImpLib In codeModel.IDLLibraries.Item(1).IDLImportLibs  
        MsgBox(vcImpLib.DisplayName)  
    Next  
End Sub  

Hinweise

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Visual C++-Code Modellen .

Gilt für