创建存储类的实例,该类把 IServiceProvider 实现委托给给定 serviceProvider。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Sub New ( _
serviceProvider As IServiceProvider, _
properties As Dictionary(Of Object, Object), _
ParamArray domainModelTypes As Type() _
)
public Store(
IServiceProvider serviceProvider,
Dictionary<Object, Object> properties,
params Type[] domainModelTypes
)
参数
- serviceProvider
类型:System.IServiceProvider
服务提供程序通过此存储的 IServiceProvider 实现来代理。
- properties
类型:System.Collections.Generic.Dictionary<Object, Object>
将初始化存储区的 PropertyBag 的属性的字典。
- domainModelTypes
类型:array<System.Type[]
要加载的域模型列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。