Role::GetInstances Method

Gets the collection of instances for the role.

Syntax

public:
 GetInstances()  

Return value

Type:  

The instance objects for the role.

Remarks

The number of instances of a role to be deployed to Windows Azure is specified in the ServiceConfiguration.cscfg file.

You can change the number of role instances that are running by changing the instances count in the ServiceConfiguration.csfg file.

At least one internal endpoint must be defined for a role to enable instances to be known at runtime.

Requirements

Header: Declared in ServiceDefinition.h.

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

See also

Reference

Role

Role Members