PackageDeploymentResult.Error Property
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.
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.