VCLinkerTool.IgnoreDefaultLibraryNames 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 uma ou mais bibliotecas padrão a serem ignoradas.
public:
property System::String ^ IgnoreDefaultLibraryNames { System::String ^ get(); void set(System::String ^ value); };
public:
property Platform::String ^ IgnoreDefaultLibraryNames { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(22)]
public string IgnoreDefaultLibraryNames { [System.Runtime.InteropServices.DispId(22)] get; [System.Runtime.InteropServices.DispId(22)] set; }
[<System.Runtime.InteropServices.DispId(22)>]
[<get: System.Runtime.InteropServices.DispId(22)>]
[<set: System.Runtime.InteropServices.DispId(22)>]
member this.IgnoreDefaultLibraryNames : string with get, set
Public Property IgnoreDefaultLibraryNames As String
Valor da propriedade
Uma cadeia de caracteres que representa os nomes das bibliotecas a serem ignoradas.
- Atributos
Exemplos
O exemplo a seguir modifica a IgnoreDefaultLibraryNames Propriedade do vinculador no ambiente de desenvolvimento integrado (IDE):
' 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 VCLinkerTool
Dim oldNames As String
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCLinkerTool")
tool.IgnoreDefaultLibraryNames = ""
oldNames = tool.IgnoreDefaultLibraryNames
tool.IgnoreDefaultLibraryNames = "some.dll;" + oldNames
MsgBox(tool.IgnoreDefaultLibraryNames)
End Sub
End Module
Comentários
IgnoreDefaultLibraryNames expõe a funcionalidade da opção de vinculador /NODEFAULTLIB (ignorar bibliotecas) e o Gerenciamento de uma opção lib de biblioteca.
Separe vários nomes de biblioteca com um ponto-e-vírgula.