Share via


ISiteStatusProvider.GetSiteStatus(Site, String) Method

Definition

Returns the running state of the site and provides an error message.

public:
 Microsoft::Web::Administration::ObjectState GetSiteStatus(Microsoft::Web::Administration::Site ^ site, [Runtime::InteropServices::Out] System::String ^ % errorMessage);
public Microsoft.Web.Administration.ObjectState GetSiteStatus (Microsoft.Web.Administration.Site site, out string errorMessage);
abstract member GetSiteStatus : Microsoft.Web.Administration.Site *  -> Microsoft.Web.Administration.ObjectState

Parameters

site
Site

The site to get the status for.

errorMessage
String

When this method returns, contains an error message associated with the exception. This parameter is passed uninitialized.

Returns

One of the ObjectState values.

Remarks

You can view the state of the sites on the Sites page of IIS Manager.

Applies to