RoleInstance::GetFaultDomain Method

Gets an integer value that indicates the fault domain in which the role instance is running.

Syntax

public:
int GetFaultDomain()  

Return value

Type: int 

An integer value that represents the fault domain in which the role instance is running.

Remarks

A fault domain is a grouping of hardware in which role instances run. When multiple instances of a role are running, Windows Azure distributes the role instances among fault domains. You do not have control over which fault domain is used or the number of fault domains used, but you can query a role instance to know what fault domain it is in.

Requirements

Header: Declared in ServiceDefinition.h.

Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).

See also

Reference

RoleInstance

RoleInstance Members