FilterUIHintAttribute Konstruktory

Definice

Inicializuje novou instanci FilterUIHintAttribute třídy.

Přetížení

FilterUIHintAttribute(String)

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru.

FilterUIHintAttribute(String, String)

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru a název prezentační vrstvy.

FilterUIHintAttribute(String, String, Object[])

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru, názvu prezentační vrstvy a parametrů ovládacího prvku.

FilterUIHintAttribute(String)

Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru.

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)

Parametry

filterUIHint
String

Název ovládacího prvku, který se má použít pro filtrování.

Příklady

Následující příklad ukazuje, jak nahradit výchozí filtry u entity produktu.

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  

Platí pro

FilterUIHintAttribute(String, String)

Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru a název prezentační vrstvy.

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)

Parametry

filterUIHint
String

Název ovládacího prvku, který se má použít pro filtrování.

presentationLayer
String

Název prezentační vrstvy, která podporuje tento ovládací prvek.

Platí pro

FilterUIHintAttribute(String, String, Object[])

Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs
Zdroj:
FilterUIHintAttribute.cs

Inicializuje novou instanci FilterUIHintAttribute třídy pomocí nápovědy uživatelského rozhraní filtru, názvu prezentační vrstvy a parametrů ovládacího prvku.

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())

Parametry

filterUIHint
String

Název ovládacího prvku, který se má použít pro filtrování.

presentationLayer
String

Název prezentační vrstvy, která podporuje tento ovládací prvek.

controlParameters
Object[]

Seznam parametrů ovládacího prvku.

Platí pro