ElementReferenceExtensions.FocusAsync 메서드

정의

오버로드

FocusAsync(ElementReference)

지정된 요소에 포커스를 ElementReference제공합니다.

FocusAsync(ElementReference, Boolean)

지정된 요소에 포커스를 ElementReference제공합니다.

FocusAsync(ElementReference)

지정된 요소에 포커스를 ElementReference제공합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask FocusAsync(Microsoft::AspNetCore::Components::ElementReference elementReference);
public static System.Threading.Tasks.ValueTask FocusAsync (this Microsoft.AspNetCore.Components.ElementReference elementReference);
static member FocusAsync : Microsoft.AspNetCore.Components.ElementReference -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function FocusAsync (elementReference As ElementReference) As ValueTask

매개 변수

elementReference
ElementReference

포커스를 맞출 요소에 대한 참조입니다.

반환

ValueTask 비동기 포커스 작업을 나타내는 입니다.

적용 대상

FocusAsync(ElementReference, Boolean)

지정된 요소에 포커스를 ElementReference제공합니다.

public static System.Threading.Tasks.ValueTask FocusAsync (this Microsoft.AspNetCore.Components.ElementReference elementReference, bool preventScroll);
static member FocusAsync : Microsoft.AspNetCore.Components.ElementReference * bool -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function FocusAsync (elementReference As ElementReference, preventScroll As Boolean) As ValueTask

매개 변수

elementReference
ElementReference

포커스를 맞출 요소에 대한 참조입니다.

preventScroll
Boolean

브라우저에서 Boolean 문서를 스크롤하여 새로 포커스가 있는 요소를 볼 수 있는지 여부를 나타내는 값입니다. preventScroll(기본값)에 대한 false 값은 브라우저가 포커스를 지정한 후 요소를 보기로 스크롤한다는 것을 의미합니다. preventScroll이 true로 설정되면 스크롤이 발생하지 않습니다.

반환

ValueTask 비동기 포커스 작업을 나타내는 입니다.

적용 대상