I​Custom​Property​Provider I​Custom​Property​Provider I​Custom​Property​Provider Interface

Definition

Provides lookup service for ICustomProperty support. This interface is implemented by objects so that their custom defined properties can be used as run-time binding sources.

public interface ICustomPropertyProviderpublic interface ICustomPropertyProviderPublic Interface ICustomPropertyProvider
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Type Type Type

Gets the underlying type of the custom property.

public TypeName Type { get; }public Type Type { get; }Public ReadOnly Property Type As Type
Value
TypeName TypeName TypeName

The underlying type, with relevant information as the values of the TypeName structure. TypeName provides the infrastructure such that property backing does not have to take a dependency on the common language runtime (CLR) and System.Type.

Attributes
See Also

Methods

GetCustomProperty(String) GetCustomProperty(String) GetCustomProperty(String)

Gets a custom property's ICustomProperty support object by specifying a property name.

public ICustomProperty GetCustomProperty(String name)public ICustomProperty GetCustomProperty(String name)Public Function GetCustomProperty(name As String) As ICustomProperty
Parameters
name
System.String System.String System.String

The name of the property to get the support object for.

Returns

The returned support object for the custom property, or nullptr.

Attributes

GetIndexedProperty(String, TypeName) GetIndexedProperty(String, TypeName) GetIndexedProperty(String, TypeName)

Gets a custom property's ICustomProperty support object by specifying a property name and the type of the indexed collection.

public ICustomProperty GetIndexedProperty(String name, TypeName type)public ICustomProperty GetIndexedProperty(String name, TypeName type)Public Function GetIndexedProperty(name As String, type As TypeName) As ICustomProperty
Parameters
name
System.String System.String System.String

The name of the property to get the support object for.

type
TypeName TypeName TypeName

The type of the indexed collection, specified as a TypeName wrapper.

Returns

The returned support object for the custom property, or nullptr.

Attributes
See Also

GetStringRepresentation() GetStringRepresentation() GetStringRepresentation()

Provides support for "GetStringFromObject" and/or "ToString" logic on the assumption that the implementation supports System.Object. This logic might be accessed by features or services such as generating UI Automation values based on data content.

public PlatForm::String GetStringRepresentation()public string GetStringRepresentation()Public Function GetStringRepresentation() As string
Returns
string string string

The provided string.

Attributes

See Also