Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Public Shared Function CreateDialog(Of T As {Control, IModelBrowser}) ( _
    store As Store, _
    modelBusReference As ModelBusReference, _
    metadata As IEnumerable(Of PickerMetadataBaseAttribute) _
) As PickerDialog
public static PickerDialog CreateDialog<T>(
    Store store,
    ModelBusReference modelBusReference,
    IEnumerable<PickerMetadataBaseAttribute> metadata
)
where T : Control, IModelBrowser
public:
generic<typename T>
where T : Control, IModelBrowser 
static PickerDialog^ CreateDialog(
    Store^ store, 
    ModelBusReference^ modelBusReference, 
    IEnumerable<PickerMetadataBaseAttribute^>^ metadata
)
static member CreateDialog : 
        store:Store * 
        modelBusReference:ModelBusReference * 
        metadata:IEnumerable<PickerMetadataBaseAttribute> -> PickerDialog   when 'T : Control and IModelBrowser
JScript does not support generic types or methods.
Type Parameters
- T
 
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
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | When modelBus or modelBrowserType is null.  | 
| NotSupportedException | When modelBrowserType is not a WPF control–based class that implements IModelBrowser also.  | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
 
See Also
Reference
Microsoft.VisualStudio.Modeling.Integration.Shell.Picker Namespace