This document is archived and information here might be outdated.  Recommended version.


IGlobeHelperPub2.LoadNamedServerObject Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GlobeCore)  

IGlobeHelperPub2.LoadNamedServerObject Method

Loads the named arcgis service into the globe.

[Visual Basic .NET]
Public Function LoadNamedServerObject ( _
    ByVal bsServerName As String, _
    ByVal bsServerObjectname As String, _
    ByVal bsServiceType As String, _
    ByVal bsUsername As String, _
    ByVal vPassword As Object, _
    ByVal pGlobe As IGlobe, _
    ByVal bRequestLoadAnimation As Boolean _
) As IEnumLayer
[C#]
public IEnumLayer LoadNamedServerObject (
    string bsServerName,
    string bsServerObjectname,
    string bsServiceType,
    string bsUsername,
    object vPassword,
    IGlobe pGlobe,
    bool bRequestLoadAnimation
);
[C++]
HRESULT LoadNamedServerObject(
  BSTR bsServerName,
  BSTR bsServerObjectname,
  BSTR bsServiceType,
  BSTR bsUsername,
  VARIANT vPassword,
  IGlobe* pGlobe,
  VARIANT_BOOL bRequestLoadAnimation,
  IEnumLayer** ppLayers
);
[C++]

Parameters bsServerName [in] bsServerName is a parameter of type BSTR bsServerObjectname [in] bsServerObjectname is a parameter of type BSTR bsServiceType [in] bsServiceType is a parameter of type BSTR bsUsername [in] bsUsername is a parameter of type BSTR vPassword [in] vPassword is a parameter of type VARIANT pGlobe [in]
pGlobe is a parameter of type IGlobe bRequestLoadAnimation [in] bRequestLoadAnimation is a parameter of type VARIANT_BOOL ppLayers [out, retval]
ppLayers is a parameter of type IEnumLayer

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Use this method to add a Globe/Map service to globe. The method returns an IEnumLayer which is the list of layers in the service.

See Also

IGlobeHelperPub2 Interface