CompilerParameters.Win32Resource 屬性

定義

取得或設定要連結至已編譯組件內之 Win32 資源檔的檔名。

public:
 property System::String ^ Win32Resource { System::String ^ get(); void set(System::String ^ value); };
public string Win32Resource { get; set; }
member this.Win32Resource : string with get, set
Public Property Win32Resource As String

屬性值

將連結至已編譯組件內的 Win32 資源檔。

備註

透過這個屬性連結檔案類似於/winres許多 .NET Framework 編譯程式支援的和 /winresource 命令行自變數。

使用 Win32Resource 將 Win32 資源文件編譯成元件。 使用 EmbeddedResourcesLinkedResources 搭配 .NET Framework 資源文件進行編譯。

並非所有編譯程式都支援 Win32 資源檔,因此您應該先測試此支援的程式代碼產生器,再呼叫 Supports 方法與旗 Win32Resources標 連結資源檔。

適用於

另請參閱