ArcGIS Runtime SDK for WPF - Library Reference
SetItem Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > WorkspaceInfoCollection Class : SetItem Method

index
The zero-based index of the WorkspaceInfo item to replace.
item
The WorkspaceInfo item with which to update an existing item at the specified index.
Replaces the WorkspaceItem at the specified index.

Syntax

Visual Basic (Declaration) 
Protected Overrides Sub SetItem( _
   ByVal index As Integer, _
   ByVal item As WorkspaceInfo _
) 
C# 
protected override void SetItem( 
   int index,
   WorkspaceInfo item
)

Parameters

index
The zero-based index of the WorkspaceInfo item to replace.
item
The WorkspaceInfo item with which to update an existing item at the specified index.

Exceptions

ExceptionDescription
System.InvalidOperationExceptionDynamicWorkspaces property cannot be modified when the service is running.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.