Exportar (0) Imprimir
Expandir todo

RoleInstance.FaultDomain (Propiedad)

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

Espacio de nombres: Microsoft.WindowsAzure.ServiceRuntime
Ensamblado: Microsoft.WindowsAzure.ServiceRuntime (en microsoft.windowsazure.serviceruntime.dll)

'Uso
Dim instance As RoleInstance
Dim value As Integer

value = instance.FaultDomain

public abstract int FaultDomain { get; }
/** @property */
public abstract int get_FaultDomain ()

public abstract function get FaultDomain () : int

Valor de propiedad

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

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.

The following code example shows how to retrieve the fault domain values for role instances:


foreach (var role in RoleEnvironment.Roles) 
{
   foreach (var roleInstance in role.Value.Instances)      
   {
      Trace.WriteLine("Role instance fault domain: " + roleInstance.FaultDomain, "Information");
   }
}

Cualquier miembro estático público (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Plataformas de desarrollo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008 y Windows 2000

Plataformas de destino

Adiciones de comunidad

Mostrar:
© 2014 Microsoft