語言

RuntimeCompatibilityOptions.PatchLevel1 屬性

定義

若執行版本與 major.minor 版本相符,則會取得或設定可選的補丁等級。

如果你的應用程式尚未在轉換到新版 Windows 應用程式 SDK,則只能設定這個補丁等級。

public:
 property WindowsAppRuntimeVersion PatchLevel1 { WindowsAppRuntimeVersion get(); void set(WindowsAppRuntimeVersion value); };
WindowsAppRuntimeVersion PatchLevel1();

void PatchLevel1(WindowsAppRuntimeVersion value);
public WindowsAppRuntimeVersion PatchLevel1 { get; set; }
var windowsAppRuntimeVersion = runtimeCompatibilityOptions.patchLevel1;
runtimeCompatibilityOptions.patchLevel1 = windowsAppRuntimeVersion;
Public Property PatchLevel1 As WindowsAppRuntimeVersion

屬性值

若執行時版本與 major.minor 版本相符,則可選擇的補丁等級。 如果執行版本與指定的 major.minor 版本不符,則忽略此值。

備註

你可以在應用程式的專案檔案中指定這個補丁等級,而不是直接使用 PatchLevel1,就像這樣:

<PropertyGroup>
  <WindowsAppSDKRuntimePatchLevel1>1.7.3</WindowsAppSDKRuntimePatchLevel1>
</PropertyGroup>

適用於