다음을 통해 공유


UITestException.SetHResult Method

Sets the corresponding HRESULT for this exception.

This API is not CLS-compliant. 

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

  • hResult
    Type: UInt32

    The HRESULT value.

.NET Framework Security

See Also

Reference

UITestException Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace