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
- hResult
Type: System.UInt32
The HRESULT value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.