共用方式為


VCManagedResourceCompilerTool.OutputFileName 屬性

取得這個 .resx 檔案所提供的最後輸出檔名稱。

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

'宣告
ReadOnly Property OutputFileName As String
string OutputFileName { get; }
property String^ OutputFileName {
    String^ get ();
}
abstract OutputFileName : string with get
function get OutputFileName () : String

屬性值

類型:String
表示最後輸出檔名稱的字串。

備註

如需如何編譯及執行範例的詳細資訊,請參閱 如何:編譯專案模型擴充性的範例程式碼

範例

' 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

.NET Framework 安全性

請參閱

參考

VCManagedResourceCompilerTool 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間