Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: UInt32The 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.