Try our conversational search powered by Generative AI!

Delegate GetPropertyByIndexDelegate

The delegate that will be used when fetching properties from a PropertyDataCollection with the Int32 indexer.

Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public delegate PropertyData GetPropertyByIndexDelegate(int index, PropertyDataCollection properties);
Parameters
Type Name Description
System.Int32 index

The index of the property.

PropertyDataCollection properties

The PropertyDataCollection to index into.

Returns
Type Description
PropertyData

The property with the given index from the PropertyDataCollection.

Remarks

It's possible to write your own GetPropertyByIndexDelegate and specify that is should be used by setting the GetByIndexHandler property of the PropertyDataCollection.

Constructors

GetPropertyByIndexDelegate(Object, IntPtr)

Declaration
public GetPropertyByIndexDelegate(object object, IntPtr method)
Parameters
Type Name Description
System.Object object
System.IntPtr method

Methods

BeginInvoke(Int32, PropertyDataCollection, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(int index, PropertyDataCollection properties, AsyncCallback callback, object object)
Parameters
Type Name Description
System.Int32 index
PropertyDataCollection properties
System.AsyncCallback callback
System.Object object
Returns
Type Description
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual PropertyData EndInvoke(IAsyncResult result)
Parameters
Type Name Description
System.IAsyncResult result
Returns
Type Description
PropertyData

Invoke(Int32, PropertyDataCollection)

Declaration
public virtual PropertyData Invoke(int index, PropertyDataCollection properties)
Parameters
Type Name Description
System.Int32 index
PropertyDataCollection properties
Returns
Type Description
PropertyData

Extension Methods