AppInstance.GetInstances 메서드

정의

앱의 실행 중인 모든 인스턴스의 컬렉션을 검색합니다.

public:
 static IVector<AppInstance ^> ^ GetInstances();
/// [Windows.Foundation.Metadata.Experimental]
 static IVector<AppInstance> GetInstances();
 static IVector<AppInstance> GetInstances();
[Windows.Foundation.Metadata.Experimental]
public static IList<AppInstance> GetInstances();
public static IList<AppInstance> GetInstances();
function getInstances()
Public Shared Function GetInstances () As IList(Of AppInstance)

반환

IVector<AppInstance>

IList<AppInstance>

앱의 실행 중인 모든 인스턴스의 컬렉션입니다.

특성

설명

Windows OS의 Windows.ApplicationModel.AppInstance.GetInstances 메서드는 FindOrRegisterInstanceForKey 메서드를 사용하여 다중 인스턴스 리디렉션을 위해 명시적으로 등록된 앱 인스턴스만 반환하지만, Windows 앱 SDK 이 메서드는 AppInstance 메서드를 호출한 실행 중인 모든 앱 인스턴스의 목록을 반환합니다. 일반적으로 앱 인스턴스 는 AppInstance.GetCurrent를 호출하며, 두 가지 작업을 수행합니다. 즉, GetInstances 메서드에서 반환되는 목록에 현재 인스턴스를 추가하고 현재 인스턴스를 반환합니다.

적용 대상