ESRI.ArcGIS.ADF.Web.UI.WebControls
Layer Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapTips Class : Layer Property




Layer from which map tips information is retrieved.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<ResCategoryAttribute("MapTips")>
<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.Editors.MapTipsLayerEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResDescriptionAttribute("The layer from which map tips information is retrieved.")>
<PersistenceModeAttribute()>
<NotifyParentPropertyAttribute(True)>
<BrowsableAttribute(True)>
Public Property Layer As String
Visual Basic (Usage)Copy Code
Dim instance As MapTips
Dim value As String
 
instance.Layer = value
 
value = instance.Layer
C# 
[DefaultValueAttribute()]
[ResCategoryAttribute("MapTips")]
[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.Editors.MapTipsLayerEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResDescriptionAttribute("The layer from which map tips information is retrieved.")]
[PersistenceModeAttribute()]
[NotifyParentPropertyAttribute(true)]
[BrowsableAttribute(true)]
public string Layer {get; set;}

Return Value

String containing the layer, resource and resource manager used by the MapTips control.

Remarks

This property stores the information necessary to retrieve information about features in the map. The property stores the map layer name, with the MapResourceManager ID and map resource name prefixed to the layer name (the delimiter between these values at this release is a pair of colon characters, but the formatting is subject to change).

The recommended method for setting this property is with the design editor in Visual Studio (or Visual Web Developer Express). This is accessed via the Properties panel of the control or via the "smart tag" on the control in the Design view of the page.

The MapResourceManager specified in this property should be the same as the one used by the map specified in the Map property. Runtime errors may result if different MapResourceManager controls are used, especially if they contain different resources or layers.

See Also

© 2010 All Rights Reserved.