PackageDeploymentResult.Error Property

Definition

Gets the extended error code, which you can use to distinguish a specific error condition (which needs to be handled differently) from the general error indicated by the return code.

public:
 property HResult Error { HResult get(); };
HResult Error();
public System.Exception Error { get; }
var hResult = packageDeploymentResult.error;
Public ReadOnly Property Error As Exception

Property Value

The extended error code.

Remarks

The extended error code might provide a more specific reason for the failure that caused the general error. Also, it usually corresponds directly to the specific message in ErrorText.

Applies to