AppInstallManager.Cancel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Cancel(String) |
Cancels the installation of the specified app. |
Cancel(String, String) |
Cancels the installation of the specified app, with the option to generate telemetry data. |
Cancel(String)
Cancels the installation of the specified app.
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)
Parameters
- productId
-
String
Platform::String
winrt::hstring
The product ID of the app whose installation should be canceled.
Windows requirements
App capabilities |
runFullTrust
|
See also
Applies to
Cancel(String, String)
Cancels the installation of the specified app, with the option to generate telemetry data.
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)
Parameters
- productId
-
String
Platform::String
winrt::hstring
The product ID of the app whose installation should be canceled.
- correlationVector
-
String
Platform::String
winrt::hstring
A correlation vector string that can be used to generate telemetry data.
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
App capabilities |
runFullTrust
|