IsolatedStorage.InitStore 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用域或应用程序证据初始化一个新的 IsolatedStorage 对象。
InitStore(IsolatedStorageScope, Type, Type) |
初始化新的 IsolatedStorage 对象。 |
InitStore(IsolatedStorageScope, Type) |
初始化新的 IsolatedStorage 对象。 |
- Source:
- IsolatedStorage.cs
- Source:
- IsolatedStorage.cs
- Source:
- IsolatedStorage.cs
初始化新的 IsolatedStorage 对象。
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);
C#
protected void InitStore(System.IO.IsolatedStorage.IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType);
member this.InitStore : System.IO.IsolatedStorage.IsolatedStorageScope * Type * Type -> unit
Protected Sub InitStore (scope As IsolatedStorageScope, domainEvidenceType As Type, assemblyEvidenceType As Type)
参数
- scope
- IsolatedStorageScope
IsolatedStorageScope 值的按位组合。
- domainEvidenceType
- Type
可从调用应用程序的域内存在的 Evidence 列表中选择的 Evidence 的类型。 如果为 null
,则允许 IsolatedStorage 对象选择证据。
- assemblyEvidenceType
- Type
可从调用应用程序的程序集内存在的 Evidence 列表中选择的 Evidence 的类型。 如果为 null
,则允许 IsolatedStorage 对象选择证据。
例外
指定的程序集没有足够的权限创建独立存储区。
注解
派生类使用此方法初始化新对象。
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.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 |
- Source:
- IsolatedStorage.cs
- Source:
- IsolatedStorage.cs
- Source:
- IsolatedStorage.cs
初始化新的 IsolatedStorage 对象。
protected:
void InitStore(System::IO::IsolatedStorage::IsolatedStorageScope scope, Type ^ appEvidenceType);
C#
protected void InitStore(System.IO.IsolatedStorage.IsolatedStorageScope scope, Type appEvidenceType);
member this.InitStore : System.IO.IsolatedStorage.IsolatedStorageScope * Type -> unit
Protected Sub InitStore (scope As IsolatedStorageScope, appEvidenceType As Type)
参数
- scope
- IsolatedStorageScope
IsolatedStorageScope 值的按位组合。
- appEvidenceType
- Type
可从调用应用程序的 Evidence 列表中选择的 Evidence 的类型。 如果为 null
,则允许 IsolatedStorage 对象选择证据。
例外
指定的程序集没有足够的权限创建独立存储区。
注解
派生类使用此方法初始化新对象。
适用于
.NET 10 和其他版本
产品 | 版本 |
---|---|
.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 |