VCMidlTool.MkTypLibCompatible Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define um valor que indica se a compatibilidade deve ser forçada com mktyplib.exe versão 2, 3.
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
Valor da propriedade
true Se ele força a compatibilidade com mktyplib.exe; caso contrário, false .
- Atributos
Exemplos
Consulte como compilar código de exemplo para extensibilidade de modelo de projeto para obter informações sobre como compilar e executar este exemplo.
O exemplo a seguir modifica a MkTypLibCompatible propriedade no ambiente de desenvolvimento integrado (IDE):
[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
Comentários
MkTypLibCompatible expõe a funcionalidade da opção MIDL/mktyplib203.