共用方式為


UITestException.SetHResult(UInt32) Method

Definition

Important

This API is not CLS-compliant.

Sets the corresponding HRESULT for this exception.

protected:
 void SetHResult(System::UInt32 hResult);
[System.CLSCompliant(false)]
protected void SetHResult (uint hResult);
[<System.CLSCompliant(false)>]
member this.SetHResult : uint32 -> unit
Protected Sub SetHResult (hResult As UInteger)

Parameters

hResult
UInt32

The HRESULT value.

Attributes

Applies to