Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

27 lines
957 B
C#

using System.Security.Permissions;
namespace System.Web.DynamicData {
/// <summary>
/// Interface implemented by controls that can provide data to a DynamicControlParameter's.
/// i.e. the control implmenting this interface can be set as the ControlId of the DynamicControlParameter.
/// </summary>
public interface IControlParameterTarget {
/// <summary>
/// The type of data being served by this provider
/// </summary>
MetaTable Table { get; }
/// <summary>
/// The column on which the parameter is being applied, if available. e.g. a FilterUserControl
/// can provide it, but a GridView selection cannot.
/// </summary>
MetaColumn FilteredColumn { get; }
/// <summary>
/// Get the expression that can be used as a ControlParameter's 'PropertyName'
/// </summary>
string GetPropertyNameExpression(string columnName);
}
}