次の方法で共有


UIHintAttribute コンストラクター

定義

UIHintAttribute クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
UIHintAttribute(String)

指定したユーザー コントロールを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

UIHintAttribute(String, String)

指定したユーザー コントロールと指定したプレゼンテーション レイヤーを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

UIHintAttribute(String, String, Object[])

指定したユーザー コントロール、プレゼンテーション レイヤー、およびコントロール パラメーターを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

UIHintAttribute(String)

ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs

指定したユーザー コントロールを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

public:
 UIHintAttribute(System::String ^ uiHint);
public UIHintAttribute(string uiHint);
new System.ComponentModel.DataAnnotations.UIHintAttribute : string -> System.ComponentModel.DataAnnotations.UIHintAttribute
Public Sub New (uiHint As String)

パラメーター

uiHint
String

データ フィールドの表示に使用するユーザー コントロール。

注釈

このコンストラクターで作成された UIHintAttribute オブジェクトは、データ フィールドを表示するために使用するユーザー コントロール (フィールド テンプレート) を指定する、指定された uiHintを使用して初期化されます。

ASP.NET 動的データには、データ モデルにデータ フィールドをレンダリングするためのフィールド テンプレート、ページ テンプレート、およびデータ コントロールが用意されています。 これらのテンプレートとコントロールを変更してカスタマイズすることも、カスタム ユーザー コントロールを作成することもできます。 カスタム ユーザー コントロールを作成する場合は、 UIHint プロパティを使用して、データ フィールドの表示に使用するユーザー コントロールを指定します。

適用対象

UIHintAttribute(String, String)

ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs

指定したユーザー コントロールと指定したプレゼンテーション レイヤーを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

public:
 UIHintAttribute(System::String ^ uiHint, System::String ^ presentationLayer);
public UIHintAttribute(string uiHint, string presentationLayer);
public UIHintAttribute(string uiHint, string? presentationLayer);
new System.ComponentModel.DataAnnotations.UIHintAttribute : string * string -> System.ComponentModel.DataAnnotations.UIHintAttribute
Public Sub New (uiHint As String, presentationLayer As String)

パラメーター

uiHint
String

データ フィールドの表示に使用するユーザー コントロール (フィールド テンプレート)。

presentationLayer
String

クラスを使用するプレゼンテーション レイヤー。 "HTML"、"Silverlight"、"WPF"、または "WinForms" に設定できます。

適用対象

UIHintAttribute(String, String, Object[])

ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs
ソース:
UIHintAttribute.cs

指定したユーザー コントロール、プレゼンテーション レイヤー、およびコントロール パラメーターを使用して、 UIHintAttribute クラスの新しいインスタンスを初期化します。

public:
 UIHintAttribute(System::String ^ uiHint, System::String ^ presentationLayer, ... cli::array <System::Object ^> ^ controlParameters);
public UIHintAttribute(string uiHint, string presentationLayer, params object[] controlParameters);
public UIHintAttribute(string uiHint, string? presentationLayer, params object?[]? controlParameters);
new System.ComponentModel.DataAnnotations.UIHintAttribute : string * string * obj[] -> System.ComponentModel.DataAnnotations.UIHintAttribute
Public Sub New (uiHint As String, presentationLayer As String, ParamArray controlParameters As Object())

パラメーター

uiHint
String

データ フィールドの表示に使用するユーザー コントロール (フィールド テンプレート)。

presentationLayer
String

クラスを使用するプレゼンテーション レイヤー。 "HTML"、"Silverlight"、"WPF"、または "WinForms" に設定できます。

controlParameters
Object[]

任意のデータ ソースから値を取得するために使用するオブジェクト。

例外

ControlParametersnull されているか、制約キーです。

-又は-

ControlParametersの値は文字列ではありません。

適用対象