VCMidlTool.MkTypLibCompatible Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Kompatibilität mit mktyplib.exe Version 2,03 erzwungen werden soll

public:
 property bool MkTypLibCompatible { bool get(); void set(bool value); };
public:
 property bool MkTypLibCompatible { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(5)]
public bool MkTypLibCompatible { [System.Runtime.InteropServices.DispId(5)] get; [System.Runtime.InteropServices.DispId(5)] set; }
[<System.Runtime.InteropServices.DispId(5)>]
[<get: System.Runtime.InteropServices.DispId(5)>]
[<set: System.Runtime.InteropServices.DispId(5)>]
member this.MkTypLibCompatible : bool with get, set
Public Property MkTypLibCompatible As Boolean

Eigenschaftswert

Boolean

true Wenn Sie die Kompatibilität mit mktyplib.exe erzwingt; andernfalls false .

Attribute

Beispiele

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .

Im folgenden Beispiel wird die- MkTypLibCompatible Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) geändert:

[Visual Basic]

' add reference to Microsoft.VisualStudio.VCProjectEngine  
Imports EnvDTE  
Imports Microsoft.VisualStudio.VCProjectEngine  

Public Module Module1  
    Sub Test()  
        Dim prj As VCProject  
        Dim cfgs, tools As IVCCollection  
        Dim cfg As VCConfiguration  
        Dim tool As VCMidlTool  
        prj = DTE.Solution.Projects.Item(1).Object  
        cfgs = prj.Configurations  
        cfg = cfgs.Item(1)  
        tool = cfg.Tools("VCMIDLTool")  
        tool.MkTypLibCompatible = True  
    End Sub  
End Module  

Hinweise

MkTypLibCompatible macht die Funktionalität der/mktyplib203-Mittell-Option verfügbar.

Gilt für