ISiteStatusProvider.GetSiteStatus(Site, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.