Share via


UITestException.SetHResult Method

Sets the corresponding HRESULT for this exception.

This API is not CLS-compliant. The CLS-compliant alternative is [notavailable.].

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Protected Sub SetHResult ( _
    hResult As UInteger _
)
[CLSCompliantAttribute(false)]
protected void SetHResult(
    uint hResult
)
[CLSCompliantAttribute(false)]
protected:
void SetHResult(
    unsigned int hResult
)
[<CLSCompliantAttribute(false)>]
member SetHResult : 
        hResult:uint32 -> unit 
protected function SetHResult(
    hResult : uint
)

Parameters

.NET Framework Security

See Also

Reference

UITestException Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace