Translates LightSpeed validation attributes to DataAnnotations attributes for a property represented by a PropertyDescriptor.

Namespace:  Mindscape.LightSpeed.Web.DataAnnotations
Assembly:  Mindscape.LightSpeed.Web (in Mindscape.LightSpeed.Web.dll)
Version: 4.0.1000.1 (4.0.0.0)

Syntax

C#
public static Attribute[] GetDataAnnotations(
	PropertyDescriptor descriptor
)
Visual Basic (Declaration)
Public Shared Function GetDataAnnotations ( _
	descriptor As PropertyDescriptor _
) As Attribute()

Parameters

descriptor
Type: System.ComponentModel..::.PropertyDescriptor
The property for which DataAnnotations attributes are required.

Return Value

The DataAnnotations attributes for the specified property.

See Also