Dela via


AppInstance.GetInstances Method

Definition

Gets the registered instances of the current app.

public:
 static IVector<AppInstance ^> ^ GetInstances();
 static IVector<AppInstance> GetInstances();
public static IList<AppInstance> GetInstances();
function getInstances()
Public Shared Function GetInstances () As IList(Of AppInstance)

Returns

A list of the registered instances of the current app.

Examples

This example gets a list of all the registered instances of the current app.

List<AppInstance> instances = AppInstance.GetInstances();

Remarks

To register an instance, see FindOrRegisterInstanceForKey.

Applies to