PickerDialog.CreateDialog 方法 (Type, Store, ModelBusReference, IEnumerable<PickerMetadataBaseAttribute>)
建立會根據參數的 PickerDialog 和初始化。
命名空間: Microsoft.VisualStudio.Modeling.Integration.Shell.Picker
組件: Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0.dll 中)
語法
'宣告
Public Shared Function CreateDialog ( _
modelBrowserType As Type, _
store As Store, _
modelBusReference As ModelBusReference, _
metadata As IEnumerable(Of PickerMetadataBaseAttribute) _
) As PickerDialog
public static PickerDialog CreateDialog(
Type modelBrowserType,
Store store,
ModelBusReference modelBusReference,
IEnumerable<PickerMetadataBaseAttribute> metadata
)
參數
- modelBrowserType
類型:System.Type
- modelBusReference
類型:Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
傳回值
類型:Microsoft.VisualStudio.Modeling.Integration.Shell.Picker.PickerDialog
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | 當 modelBus 或 modelBrowserType 是空的。 |
NotSupportedException | 當 modelBrowserType 不是 WPF 時該控制項架構的類別也實作 IModelBrowser。 |
備註
存放區用於參考修正和做為服務提供者。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.VisualStudio.Modeling.Integration.Shell.Picker 命名空間