UIHintAttribute 생성자

정의

UIHintAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

UIHintAttribute(String)

지정된 사용자 정의 컨트롤을 사용하여 UIHintAttribute 클래스의 새 인스턴스를 초기화합니다.

UIHintAttribute(String, String)

지정된 사용자 컨트롤과 지정된 프레젠테이션 레이어를 사용하여 UIHintAttribute 클래스의 새 인스턴스를 초기화합니다.

UIHintAttribute(String, String, Object[])

지정된 사용자 컨트롤, 프레젠테이션 레이어 및 컨트롤 매개 변수를 사용하여 UIHintAttribute 클래스의 새 인스턴스를 초기화합니다.

UIHintAttribute(String)

Source:
UIHintAttribute.cs
Source:
UIHintAttribute.cs
Source:
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)

Source:
UIHintAttribute.cs
Source:
UIHintAttribute.cs
Source:
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[])

Source:
UIHintAttribute.cs
Source:
UIHintAttribute.cs
Source:
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의 값은 문자열이 아닙니다.

적용 대상