UIHintAttribute Constructor (String, String)

UIHintAttribute Constructor (String, String)

Initializes a new instance of the UIHintAttribute class using the UIHint and PresentationLayer properties.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public UIHintAttribute(
	string uiHint,
	string presentationLayer


Type: System.String

The user control to use to display the data field.

Type: System.String

The presentation layer that uses the class. Can be set to HTML, Silverlight, WPF, or WinForms.

A UIHintAttribute object created with this constructor is initialized using the specified UIHintand PresentationLayer. The UIHintAttribute class also enables you to specify how the data is presented. The data can be presented a HTML, Silverlight, WPF or a WinForm.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

© 2015 Microsoft