FilterUIHintAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FilterUIHintAttribute class.
Overloads
FilterUIHintAttribute(String) |
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint. |
FilterUIHintAttribute(String, String) |
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint and presentation layer name. |
FilterUIHintAttribute(String, String, Object[]) |
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint, presentation layer name, and control parameters. |
FilterUIHintAttribute(String)
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint.
public:
FilterUIHintAttribute(System::String ^ filterUIHint);
public FilterUIHintAttribute (string filterUIHint);
new System.ComponentModel.DataAnnotations.FilterUIHintAttribute : string -> System.ComponentModel.DataAnnotations.FilterUIHintAttribute
Public Sub New (filterUIHint As String)
Parameters
- filterUIHint
- String
The name of the control to use for filtering.
Examples
The following example shows how to replace default filters on the product entity.
MetadataType(typeof(Product_MD))]
public partial class Product {
private class Product_MD {
[FilterUIHint("MultiForeignKey")]
public object Category { get; set; }
[FilterUIHint("BooleanRadio")]
public object Discontinued { get; set; }
}
}
<MetadataType(GetType(Product_MD))> _
Public Class Product
Private Class Product_MD
<FilterUIHint("MultiForeignKey")> _
Public Property Category As Object
End Property
<FilterUIHint("BooleanRadio")> _
Public Property Discontinued As Object
End Property
End Class
End Class
Applies to
FilterUIHintAttribute(String, String)
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint and presentation layer name.
public:
FilterUIHintAttribute(System::String ^ filterUIHint, System::String ^ presentationLayer);
public FilterUIHintAttribute (string filterUIHint, string presentationLayer);
public FilterUIHintAttribute (string filterUIHint, string? presentationLayer);
new System.ComponentModel.DataAnnotations.FilterUIHintAttribute : string * string -> System.ComponentModel.DataAnnotations.FilterUIHintAttribute
Public Sub New (filterUIHint As String, presentationLayer As String)
Parameters
- filterUIHint
- String
The name of the control to use for filtering.
- presentationLayer
- String
The name of the presentation layer that supports this control.
Applies to
FilterUIHintAttribute(String, String, Object[])
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
- Source:
- FilterUIHintAttribute.cs
Initializes a new instance of the FilterUIHintAttribute class by using the filter UI hint, presentation layer name, and control parameters.
public:
FilterUIHintAttribute(System::String ^ filterUIHint, System::String ^ presentationLayer, ... cli::array <System::Object ^> ^ controlParameters);
public FilterUIHintAttribute (string filterUIHint, string presentationLayer, params object[] controlParameters);
public FilterUIHintAttribute (string filterUIHint, string? presentationLayer, params object?[] controlParameters);
new System.ComponentModel.DataAnnotations.FilterUIHintAttribute : string * string * obj[] -> System.ComponentModel.DataAnnotations.FilterUIHintAttribute
Public Sub New (filterUIHint As String, presentationLayer As String, ParamArray controlParameters As Object())
Parameters
- filterUIHint
- String
The name of the control to use for filtering.
- presentationLayer
- String
The name of the presentation layer that supports this control.
- controlParameters
- Object[]
The list of parameters for the control.