ESRI.ArcGIS.ADF.Web.UI.WebControls
LayerDefinitions Property
See Also  Send Feedback
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) 
<DefaultValueAttribute()>
<ResCategoryAttribute("Appearance")>
<NotifyParentPropertyAttribute(True)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<TypeConverterAttribute("ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionConverter, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResDescriptionAttribute("Defines how the features of layers in a map resource are symbolized and how their field values are formatted for display.")>
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# 
[DefaultValueAttribute()]
[ResCategoryAttribute("Appearance")]
[NotifyParentPropertyAttribute(true)]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[TypeConverterAttribute("ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.LayerDefinitionCollectionConverter, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResDescriptionAttribute("Defines how the features of layers in a map resource are symbolized and how their field values are formatted for display.")]
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.