ESRI.ArcGIS.ADF.Web.UI.WebControls
LayerDefinitions Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapResourceItem Class : LayerDefinitions Property




Defines how the features of layers in a map resource are symbolized and how their field values are formatted for display.

Syntax

Visual Basic (Declaration) 
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<TypeConverterAttribute("ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionConverter, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Appearance")>
<ResDescriptionAttribute("Defines how the features of layers in a map resource are symbolized and how their field values are formatted for display.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
Public Property LayerDefinitions As LayerDefinitionCollection
Visual Basic (Usage)Copy Code
Dim instance As MapResourceItem
Dim value As LayerDefinitionCollection
 
instance.LayerDefinitions = value
 
value = instance.LayerDefinitions
C# 
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[TypeConverterAttribute("ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionConverter, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Appearance")]
[ResDescriptionAttribute("Defines how the features of layers in a map resource are symbolized and how their field values are formatted for display.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public LayerDefinitionCollection LayerDefinitions {get; set;}

Remarks

Call UpdateLayerDefinitions if the map resource could've changed (e.g. layers added/removed, fields added/removed). If the collection is null or empty, default layer definitions will be returned at run time. At design time, the null/empty collection will be returned. It is recommended to call UpdateLayerDefinitions before using this property at design time and in web configurators.

See Also

© 2010 All Rights Reserved.