ESRI.ArcGIS.ADF.Connection
GetDataFramesFromMapServerObject(IMapServer,Boolean) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Connection.AGS Namespace > AGSServerConnection Class > GetDataFramesFromMapServerObject Method : GetDataFramesFromMapServerObject(IMapServer,Boolean) Method




serverObject
The map server object.
forOneDataFrameReturnNameAsDefault
If true and only one data frame is in the map, returns "(default)".
Gets the dataframes from a map server object

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetDataFramesFromMapServerObject( _
   ByVal serverObject As ESRI.ArcGIS.Carto.IMapServer, _
   ByVal forOneDataFrameReturnNameAsDefault As Boolean _
) As String()
Visual Basic (Usage)Copy Code
Dim instance As AGSServerConnection
Dim serverObject As ESRI.ArcGIS.Carto.IMapServer
Dim forOneDataFrameReturnNameAsDefault As Boolean
Dim value() As String
 
value = instance.GetDataFramesFromMapServerObject(serverObject, forOneDataFrameReturnNameAsDefault)
C# 
public string[] GetDataFramesFromMapServerObject( 
   ESRI.ArcGIS.Carto.IMapServer serverObject,
   bool forOneDataFrameReturnNameAsDefault
)

Parameters

serverObject
The map server object.
forOneDataFrameReturnNameAsDefault
If true and only one data frame is in the map, returns "(default)".

Return Value

An array list of map server object names as strings

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.