PickerDialog.CreateDialog<T> Method (Store, ModelBusReference, IEnumerable<PickerMetadataBaseAttribute>)
Creates a PickerDialog and initializes it based on the parameters.
Namespace: Microsoft.VisualStudio.Modeling.Integration.Shell.Picker
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.12.0.dll)
Syntax
public static PickerDialog CreateDialog<T>(
Store store,
ModelBusReference modelBusReference,
IEnumerable<PickerMetadataBaseAttribute> metadata = null
)
where T : Control, IModelBrowser
public:
generic<typename T>
where T : Control, IModelBrowser
static PickerDialog^ CreateDialog(
Store^ store,
ModelBusReference^ modelBusReference,
IEnumerable<PickerMetadataBaseAttribute^>^ metadata = null
)
static member CreateDialog<'T when 'T : Control and IModelBrowser> :
store:Store *
modelBusReference:ModelBusReference *
metadata:IEnumerable<PickerMetadataBaseAttribute> = null -> PickerDialog
Public Shared Function CreateDialog(Of T As { Control, IModelBrowser }) (
store As Store,
modelBusReference As ModelBusReference,
metadata As IEnumerable(Of PickerMetadataBaseAttribute)
) As PickerDialog
Parameters
- store
Type: Microsoft.VisualStudio.Modeling.Store
- modelBusReference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
- metadata
Type: System.Collections.Generic.IEnumerable<PickerMetadataBaseAttribute>
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.Shell.Picker.PickerDialog
Type Parameters
- T
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When modelBus or modelBrowserType is null. |
NotSupportedException | When modelBrowserType is not a WPF control–based class that implements IModelBrowser also. |
See Also
CreateDialog Overload
PickerDialog Class
Microsoft.VisualStudio.Modeling.Integration.Shell.Picker Namespace
Return to top