This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectAdmin Interface > IServerObjectAdmin.GetServerDirectory Method (ArcObjects .NET 10.5 SDK) |
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,
IServerDirectory** ppSD
);
[C++]
Parameters Path [in] Path is a parameter of type BSTR ppSD [out, retval]
ppSD is a parameter of type IServerDirectory
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.