DeploymentResult DeploymentResult DeploymentResult DeploymentResult DeploymentResult Class


Provides the result of a deployment request.

public : sealed class DeploymentResult : IDeploymentResult, IDeploymentResult2
struct winrt::Windows::Management::Deployment::DeploymentResult : IDeploymentResult, IDeploymentResult2
public sealed class DeploymentResult : IDeploymentResult, IDeploymentResult2
Public NotInheritable Class DeploymentResult Implements IDeploymentResult, IDeploymentResult2
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ActivityId ActivityId ActivityId ActivityId ActivityId

Gets the activity identifier used to look up an event in Windows Event Viewer. Gets the activity identifier used to look up an event. All events of a deployment operation are logged with the same activityId.

public : Platform::Guid ActivityId { get; }
Guid ActivityId();
public Guid ActivityId { get; }
Public ReadOnly Property ActivityId As Guid
var guid = deploymentResult.activityId;
Guid Guid Guid

The activity identifier.

ErrorText ErrorText ErrorText ErrorText ErrorText

Gets extended error text for the error if the deployment operation is not successful.

public : Platform::String ErrorText { get; }
winrt::hstring ErrorText();
public string ErrorText { get; }
Public ReadOnly Property ErrorText As string
var string = deploymentResult.errorText;
string string string

The extended error text.

ExtendedErrorCode ExtendedErrorCode ExtendedErrorCode ExtendedErrorCode ExtendedErrorCode

The extended error code can be used to distinguish a specific error condition which needs to be handled differently from the general error indicated by the return code. The extended error code may provide a more specific reason for the failure that caused the general error. Also, it usually corresponds directly to the specific message in the ErrorText.

public : HResult ExtendedErrorCode { get; }
HResult ExtendedErrorCode();
public Exception ExtendedErrorCode { get; }
Public ReadOnly Property ExtendedErrorCode As Exception
var exception = deploymentResult.extendedErrorCode;
Exception Exception Exception

The error code.

IsRegistered IsRegistered IsRegistered IsRegistered IsRegistered

Describes whether or not the package is fully registered and ready to use.

public : Platform::Boolean IsRegistered { get; }
bool IsRegistered();
public bool IsRegistered { get; }
Public ReadOnly Property IsRegistered As bool
var bool = deploymentResult.isRegistered;
bool bool bool

true if the package is registered; otherwise, false.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)