C# Class ManagedUiaCustomizationCore.UiaPropertyInfoHelper

Helper class to gather data about a custom property Corresponds to UIAutomationPropertyInfo
Inheritance: ISchemaMember
Datei anzeigen Open project: TestStack/uia-custom-pattern-managed Class Usage Examples

Public Methods

Method Description
DispatchCallToProvider ( object provider, UiaParameterListHelper paramList ) : void
UiaPropertyInfoHelper ( System.Guid propertyGuid, string programmaticName, UIAutomationType propertyType ) : System

Suitable for standalone properties that do not require handlers, hence no need to use ISchemaMember.DispatchCallToProvider() ever.

UiaPropertyInfoHelper ( System.Guid propertyGuid, string programmaticName, UIAutomationType propertyType, object>.Func getterFromProvider ) : System

Usable for general-purpose implementation that uses ISchemaMember.DispatchCallToProvider()

Private Methods

Method Description
Build ( ) : void

Method Details

DispatchCallToProvider() public method

public DispatchCallToProvider ( object provider, UiaParameterListHelper paramList ) : void
provider object
paramList UiaParameterListHelper
return void

UiaPropertyInfoHelper() public method

Suitable for standalone properties that do not require handlers, hence no need to use ISchemaMember.DispatchCallToProvider() ever.
public UiaPropertyInfoHelper ( System.Guid propertyGuid, string programmaticName, UIAutomationType propertyType ) : System
propertyGuid System.Guid
programmaticName string
propertyType UIAutomationType
return System

UiaPropertyInfoHelper() public method

Usable for general-purpose implementation that uses ISchemaMember.DispatchCallToProvider()
public UiaPropertyInfoHelper ( System.Guid propertyGuid, string programmaticName, UIAutomationType propertyType, object>.Func getterFromProvider ) : System
propertyGuid System.Guid
programmaticName string
propertyType UIAutomationType
getterFromProvider object>.Func Lambda for getting property value from pattern provider interface. It should be akin to /// (object p) => ((ISomePatternProvider)p).MyProperty. Or, same thing, /// TypeMember<ISomePatternProvider>.GetPropertyGetter(p => p.MyProperty). For standalone properties /// it can be null (it is used for pattern handler implementation only, which doesn't take part in getting standalone properties).
return System