다음을 통해 공유


CoreAutomationRegistrar.RegisterAnnotationType(Guid) 메서드

정의

텍스트 범위에 대한 사용자 지정 주석 형식을 등록합니다.

public:
 static AutomationAnnotationTypeRegistration RegisterAnnotationType(Platform::Guid guid);
 static AutomationAnnotationTypeRegistration RegisterAnnotationType(winrt::guid const& guid);
public static AutomationAnnotationTypeRegistration RegisterAnnotationType(Guid guid);
function registerAnnotationType(guid)
Public Shared Function RegisterAnnotationType (guid As Guid) As AutomationAnnotationTypeRegistration

매개 변수

guid
Guid

Platform::Guid

winrt::guid

사용자 지정 주석 형식을 나타내는 GUID입니다. 이는 UI 자동화 공급자가 사용하는 GUID와 동일해야 합니다.

반환

주석 ID가 필요한 다른 UIA API에서 사용하기 위해 등록된 GUID에 해당하는 ID를 제공하는 개체입니다.

설명

UIA(UI 자동화) 공급자와 클라이언트는 모두 이 메서드를 호출하여 사용자 지정 주석 형식을 등록합니다. guid는 둘 다에 대해 동일해야 합니다.

동일한 주석 형식 GUID는 동일한 프로세스에서 두 번 이상 등록할 수 있습니다. 이미 등록된 GUID에서 호출되는 경우 동일한 등록이 반환됩니다. UnregisterAnnotationType(Windows.UI.UIAutomation.Core.AutomationAnnotationTypeRegistration) 은 동일한 GUID가 여러 번 등록된 경우에도 이 메서드에 대한 각 호출에 대해 한 번 호출되어야 합니다.

주석 형식 등록은 등록된 프로세스 또는 UnregisterAnnotationType(Windows.UI.UIAutomation.Core.AutomationAnnotationTypeRegistration) 이 호출될 때까지 지속됩니다.

적용 대상