private void EnsureQuota(long size) {
IsolatedStoragePermission storagePerm = new IsolatedStorageFilePermission(PermissionState.None);
storagePerm.UserQuota = size;
storagePerm.UsageAllowed = _isRoaming? IsolatedStorageContainment.DomainIsolationByRoamingUser :
IsolatedStorageContainment.DomainIsolationByUser;
storagePerm.Demand();
}
}