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


IServerObjectAdmin.GetServerDirectory Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectAdmin Interface > IServerObjectAdmin.GetServerDirectory Method
ArcGIS Developer Help

IServerObjectAdmin.GetServerDirectory Method

Get the server directory with the specified Path.

[Visual Basic .NET]
Public Function GetServerDirectory ( _
    ByVal Path As String _
) As IServerDirectory
[C#]
public IServerDirectory GetServerDirectory (
    string Path
);
[C++]
HRESULT GetServerDirectory(
  BSTR Path
);
[C++]
Parameters
Path [in]

Path is a parameter of type BSTR

Product Availability

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

Remarks

The GetServerDirectory method returns the IServerDirectory interface on the ServerDirectory whose path is specified. Once you have a reference to the ServerDirectory, you can get and set its properties, and use it as input the UpdateServerDirectery method.

 

See Also

IServerObjectAdmin Interface