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
參數
- serviceProvider
類型:System.IServiceProvider
- 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 命名空間