Поделиться через


VCManagedResourceCompilerTool.OutputFileName - свойство

Gets the name of the final output file to which this .resx file contributes.

Пространство имен:  Microsoft.VisualStudio.VCProjectEngine
Сборка:  Microsoft.VisualStudio.VCProjectEngine (в Microsoft.VisualStudio.VCProjectEngine.dll)

Синтаксис

'Декларация
ReadOnly Property OutputFileName As String
'Применение
Dim instance As VCManagedResourceCompilerTool
Dim value As String

value = instance.OutputFileName
string OutputFileName { get; }
property String^ OutputFileName {
    String^ get ();
}
function get OutputFileName () : String

Значение свойства

Тип: System.String

A string representing the name of the final output file.

Заметки

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

Примеры

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCFileConfiguration
        Dim tool As VCManagedResourceCompilerTool
        Dim file As VCFile
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.Files("Form1.resx")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
        MsgBox("Output file name: " & tool.OutputFileName)
    End Sub
End Module

Разрешения

  • Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.

См. также

Ссылки

VCManagedResourceCompilerTool Интерфейс

VCManagedResourceCompilerTool - члены

Microsoft.VisualStudio.VCProjectEngine - пространство имен