IsolatedStorage.InitStore Method

Definition

Initializes a new IsolatedStorage object using either domain or application evidence.

Overloads

InitStore(IsolatedStorageScope, Type, Type)

Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs

Initializes a new IsolatedStorage object.

C#
protected void InitStore(System.IO.IsolatedStorage.IsolatedStorageScope scope, Type? domainEvidenceType, Type? assemblyEvidenceType);
C#
protected void InitStore(System.IO.IsolatedStorage.IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType);

Parameters

scope
IsolatedStorageScope

A bitwise combination of the IsolatedStorageScope values.

domainEvidenceType
Type

The type of Evidence that you can choose from the list of Evidence present in the domain of the calling application. null lets the IsolatedStorage object choose the evidence.

assemblyEvidenceType
Type

The type of Evidence that you can choose from the list of Evidence present in the assembly of the calling application. null lets the IsolatedStorage object choose the evidence.

Exceptions

The assembly specified has insufficient permissions to create isolated stores.

Remarks

Derived classes use this method to initialize a new object.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

InitStore(IsolatedStorageScope, Type)

Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs
Source:
IsolatedStorage.cs

Initializes a new IsolatedStorage object.

C#
protected void InitStore(System.IO.IsolatedStorage.IsolatedStorageScope scope, Type appEvidenceType);

Parameters

scope
IsolatedStorageScope

A bitwise combination of the IsolatedStorageScope values.

appEvidenceType
Type

The type of Evidence that you can choose from the list of Evidence for the calling application. null lets the IsolatedStorage object choose the evidence.

Exceptions

The assembly specified has insufficient permissions to create isolated stores.

Remarks

Derived classes use this method to initialize a new object.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1