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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。