AppInstallManager.Cancel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Cancel(String) |
取消指定應用程式的安裝。 |
Cancel(String, String) |
使用產生遙測資料的選項,取消指定應用程式的安裝。 |
Cancel(String)
取消指定應用程式的安裝。
public:
virtual void Cancel(Platform::String ^ productId) = Cancel;
void Cancel(winrt::hstring const& productId);
public void Cancel(string productId);
function cancel(productId)
Public Sub Cancel (productId As String)
參數
- productId
-
String
Platform::String
winrt::hstring
應該取消其安裝的應用程式產品識別碼。
Windows 需求
應用程式功能 |
runFullTrust
|
另請參閱
適用於
Cancel(String, String)
使用產生遙測資料的選項,取消指定應用程式的安裝。
public:
virtual void Cancel(Platform::String ^ productId, Platform::String ^ correlationVector) = Cancel;
/// [Windows.Foundation.Metadata.Overload("CancelWithTelemetry")]
void Cancel(winrt::hstring const& productId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.Overload("CancelWithTelemetry")]
public void Cancel(string productId, string correlationVector);
function cancel(productId, correlationVector)
Public Sub Cancel (productId As String, correlationVector As String)
參數
- productId
-
String
Platform::String
winrt::hstring
應該取消其安裝的應用程式產品識別碼。
- correlationVector
-
String
Platform::String
winrt::hstring
可用來產生遙測資料的相互關聯向量字串。
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10586.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
|
應用程式功能 |
runFullTrust
|