Gets the service name of the image service, given the path to compiled service. Returns an empty string if the service was never published or has not been started.
[Visual Basic .NET] Public Function GetServiceDefinitionName ( _ ByVal servicePath As String _ ) As String
[C#] public string GetServiceDefinitionName ( string servicePath );
[C++]
HRESULT GetServiceDefinitionName(
BSTR servicePath,
BSTR* serviceName
);
[C++]Parameters
servicePath [in] servicePath is a parameter of type BSTR serviceName [out, retval] serviceName is a parameter of type BSTR
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.