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)

반환

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

특성

설명

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

적용 대상