다음을 통해 공유


IUIAutomationRegistrar::RegisterProperty 메서드(uiautomationcore.h)

타사 속성을 등록합니다.

구문

HRESULT RegisterProperty(
  [in]  const UIAutomationPropertyInfo *property,
  [out] PROPERTYID                     *propertyId
);

매개 변수

[in] property

형식: UIAutomationPropertyInfo*

등록할 속성에 대한 정보를 포함하는 구조체에 대한 포인터입니다.

[out] propertyId

형식: PropertyID*

새로 등록된 속성의 속성 ID를 받습니다.

반환 값

형식: HRESULT

메서드가 성공하면 S_OK를 반환하고, 그러지 않으면 HRESULT 오류 코드를 반환합니다.

설명

속성 ID는 GetCurrentPropertyValueCreatePropertyCondition을 비롯한 다양한 속성 메서드에서 사용할 수 있습니다. 동일한 값을 IAccessibleEx 구현의 속성 변경 이벤트에 대한 WinEvent 값으로 사용할 수 있습니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 7, Windows Vista SP2 및 Windows Vista용 플랫폼 업데이트, WINDOWS XP SP3 및 Windows Vista용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2008 R2, Windows Server 2008 SP2 및 Windows Server 2008용 플랫폼 업데이트, WINDOWS Server 2003 SP2 및 Windows Server 2008용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 uiautomationcore.h(UIAutomation.h 포함)

추가 정보

IUIAutomationRegistrar