C# Class Web.Generics.DataAnnotations.DropDownListAttribute

Inheritance: System.Attribute
显示文件 Open project: inspira/Web.Generics

Public Methods

Method Description
DropDownListAttribute ( string viewDataKey, string dataValueField ) : System
DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField ) : System
DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField, string optionLabel ) : System
DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField, string optionLabel, object htmlAttributes ) : System
DropDownListAttribute ( string templateName, string viewDataKey, string dataValueField, string dataTextField, string optionLabel, object htmlAttributes ) : System
GetSelectedText ( object model ) : object
GetSelectedValue ( object model ) : object

Private Methods

Method Description
GetPropertyValue ( object model, string propertyName ) : object
GetTypeDescriptor ( Type type ) : ICustomTypeDescriptor

Method Details

DropDownListAttribute() public method

public DropDownListAttribute ( string viewDataKey, string dataValueField ) : System
viewDataKey string
dataValueField string
return System

DropDownListAttribute() public method

public DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField ) : System
viewDataKey string
dataValueField string
dataTextField string
return System

DropDownListAttribute() public method

public DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField, string optionLabel ) : System
viewDataKey string
dataValueField string
dataTextField string
optionLabel string
return System

DropDownListAttribute() public method

public DropDownListAttribute ( string viewDataKey, string dataValueField, string dataTextField, string optionLabel, object htmlAttributes ) : System
viewDataKey string
dataValueField string
dataTextField string
optionLabel string
htmlAttributes object
return System

DropDownListAttribute() public method

public DropDownListAttribute ( string templateName, string viewDataKey, string dataValueField, string dataTextField, string optionLabel, object htmlAttributes ) : System
templateName string
viewDataKey string
dataValueField string
dataTextField string
optionLabel string
htmlAttributes object
return System

GetSelectedText() public method

public GetSelectedText ( object model ) : object
model object
return object

GetSelectedValue() public method

public GetSelectedValue ( object model ) : object
model object
return object