Share via


WebSite.UsageState Property

Gets or sets an WebSiteUsageState value that specifies the usage state of the web site.

Namespace: Microsoft.WindowsAzure.Management.WebSites.Models
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Usage

'Usage
Dim instance As WebSite
Dim value As Nullable(Of WebSiteUsageState)

value = instance.UsageState

instance.UsageState = value

Syntax

'Declaration
Public Property UsageState As Nullable(Of WebSiteUsageState)
public Nullable<WebSiteUsageState> UsageState { get; set; }
public:
property Nullable<WebSiteUsageState> UsageState {
    Nullable<WebSiteUsageState> get ();
    void set (Nullable<WebSiteUsageState> value);
}
/** @property */
public Nullable<WebSiteUsageState> get_UsageState ()

/** @property */
public void set_UsageState (Nullable<WebSiteUsageState> value)
public function get UsageState () : Nullable<WebSiteUsageState>

public function set UsageState (value : Nullable<WebSiteUsageState>)

Property Value

An WebSiteUsageState value.

Remarks

If any quota is exceeded, the UsageState value changes to Exceeded and the site goes off line.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

WebSite Class
WebSite Members
Microsoft.WindowsAzure.Management.WebSites.Models Namespace