Share via


ApplicationData.GetDefault Method

Definition

Gets an instance of ApplicationData for the current user.

public:
 static ApplicationData ^ GetDefault();
 static ApplicationData GetDefault();
public static ApplicationData GetDefault();
function getDefault()
Public Shared Function GetDefault () As ApplicationData

Returns

Remarks

[!NOTE} Using this method requires the current process has package identity.

Note that this method is equivalent to Windows.Storage.ApplicationData.Current if running in an AppContainer. When not running in an AppContainer, this method is equivalent to Windows.Management.Core.ApplicationDataManager.CreateForPackageFamily(GetCurrentPackageFamilyName()).

Applies to

See also