共用方式為


PickerDialog.CreateDialogNoFixup<T> 方法 (IServiceProvider, 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 CreateDialogNoFixup(Of T As {Control, IModelBrowser}) ( _
    serviceProvider As IServiceProvider, _
    modelBusReference As ModelBusReference, _
    metadata As IEnumerable(Of PickerMetadataBaseAttribute) _
) As PickerDialog
public static PickerDialog CreateDialogNoFixup<T>(
    IServiceProvider serviceProvider,
    ModelBusReference modelBusReference,
    IEnumerable<PickerMetadataBaseAttribute> metadata
)
where T : Control, IModelBrowser

類型參數

  • T

參數

傳回值

類型:Microsoft.VisualStudio.Modeling.Integration.Shell.Picker.PickerDialog

例外狀況

例外狀況 條件
ArgumentNullException

當 modelBus 或 modelBrowserType 是空的。

NotSupportedException

當 modelBrowserType 不是 WPF 時該控制項架構的類別也實作 IModelBrowser。

.NET Framework 安全性

請參閱

參考

PickerDialog 類別

CreateDialogNoFixup 多載

Microsoft.VisualStudio.Modeling.Integration.Shell.Picker 命名空間