Dela via


MemoryManager.ExpectedAppMemoryUsageLimit Property

Definition

Gets the amount of memory that your app may expect to have available.

public:
 static property unsigned long long ExpectedAppMemoryUsageLimit { unsigned long long get(); };
static uint64_t ExpectedAppMemoryUsageLimit();
public static ulong ExpectedAppMemoryUsageLimit { get; }
var uInt64 = MemoryManager.expectedAppMemoryUsageLimit;
Public Shared ReadOnly Property ExpectedAppMemoryUsageLimit As ULong

Property Value

UInt64

unsigned long long

uint64_t

The expected memory cap in bytes.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

When an app launches on Xbox, it is initially given a small app memory usage limit that may grow as the system frees memory. This property returns the expected upper limit that your app will be able to use.

When an app launches on a non-Xbox system, the memory usage limit the app gets at launch remains the same and this property will return the same value as Windows.System.MemoryManager.AppMemoryUsageLimit.

Applies to

See also