ESRI.ArcGIS.ADF.Web.UI.WebControls
ResourceItems Property
See Also  Example
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > GeoprocessingResourceManager Class : ResourceItems Property




The collection of geoprocessing resource items managed by the resource manager.

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.GeoprocessingResourceItemCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<DesignerSerializationVisibilityAttribute()>
<ResCategoryAttribute("Resources")>
<PersistenceModeAttribute()>
<ResDescriptionAttribute("The GeoprocessingResourceItem collection managed by this control.")>
<NotifyParentPropertyAttribute(True)>
Public ReadOnly Property ResourceItems As GISResourceItemCollection(Of GeoprocessingResourceItem)
Visual Basic (Usage)Copy Code
Dim instance As GeoprocessingResourceManager
Dim value As GISResourceItemCollection(Of GeoprocessingResourceItem)
 
value = instance.ResourceItems
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.GeoprocessingResourceItemCollectionEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[DesignerSerializationVisibilityAttribute()]
[ResCategoryAttribute("Resources")]
[PersistenceModeAttribute()]
[ResDescriptionAttribute("The GeoprocessingResourceItem collection managed by this control.")]
[NotifyParentPropertyAttribute(true)]
public GISResourceItemCollection<GeoprocessingResourceItem> ResourceItems {get;}

Example

Uses the resource items colleciton of a GeoprocessingResourceManager to find a geoprocessing resource item by its name. If necessary, the resource item is subsequently initialized.
C#Copy Code
ESRI.ArcGIS.ADF.Web.UI.WebControls.GeoprocessingResourceItem geoprocessingResourceItem = 

    GeoprocessingResourceManager1.ResourceItems.Find(m_geoprocessingResourceName); 

  

if (!geoprocessingResourceItem.Resource.Initialized) 

    geoprocessingResourceItem.InitializeResource();

See Also

© 2010 All Rights Reserved.