ClaimedLineDisplay.TrySetDescriptorAsync 메서드

정의

지정된 특성을 사용하여 설명자를 비동기적으로 설정하려고 시도합니다.

public:
 virtual IAsyncOperation<bool> ^ TrySetDescriptorAsync(unsigned int descriptor, LineDisplayDescriptorState descriptorState) = TrySetDescriptorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TrySetDescriptorAsync(uint32_t const& descriptor, LineDisplayDescriptorState const& descriptorState);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TrySetDescriptorAsync(uint descriptor, LineDisplayDescriptorState descriptorState);
function trySetDescriptorAsync(descriptor, descriptorState)
Public Function TrySetDescriptorAsync (descriptor As UInteger, descriptorState As LineDisplayDescriptorState) As IAsyncOperation(Of Boolean)

매개 변수

descriptor
UInt32

unsigned int

uint32_t

설정할 설명자입니다. 0과 LineDisplayCapabilities.SupportedDescriptors - 1 사이의 값이 있어야 합니다.

descriptorState
LineDisplayDescriptorState

설명자에 제공할 상태입니다.

반환

설명자가 성공적으로 설정되면 True를 반환합니다. 그렇지 않으면 False입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Fall Creators Update (10.0.16299.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v5.0에서 도입되었습니다.)

설명

이 메서드가 성공적으로 실행되려면 LineDisplayCapabilities.SupportedDescriptors가 0보다 커야 합니다.

적용 대상