Share via


ObjectListTitleAttribute Class

Provides the title of an object list in an object list field.

public class System.Web.UI.MobileControls.ObjectListTitleAttribute : 
   System.Attribute

Remarks

This class is used internally by an object list to create auto-generated fields.

Example// The code starts here.
string title;
ObjectListTitleAttribute myAttribute =
(ObjectListTitleAttribute)myPropDescriptor.Attributes[typeof(ObjectListTitleAttribute)];
   If (myAttribute != null)
   {
      title = myAttribute.Title;
   }
   else
    {
   title = myPropDescriptor.Name;
   }
   list.Add(CreateAutoGeneratedField(title, myPropDescriptor.Name));
// Continuing code.

Requirements

Namespace: System.Mobile.Web.UI.MobileControls

Assembly: System.Web.Mobile

See Also

ObjectListField Class