Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

UIHintAttribute Constructor (String, String, Object[])

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

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

public UIHintAttribute(
	string uiHint,
	string presentationLayer,
	params Object[] controlParameters


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.

Type: System.Object[]

The object to use to retrieve values from any data sources.


ControlParameters is null, or if it is a constraint key, or if the value of ControlParameters is not string.

A UIHintAttribute object created with this constructor is initialized using the specified UIHint, PresentationLayer and ControlParameters properties. UIHintAttribute also enables you to specify how the data is presented. The data can be presented a HTML, Silverlight, WPF or a WindForm.

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