Share via


PickerDialog.CreateDialog Method (Type, 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(
    Type modelBrowserType,
    Store store,
    ModelBusReference modelBusReference,
    IEnumerable<PickerMetadataBaseAttribute> metadata = null
)
public:
static PickerDialog^ CreateDialog(
    Type^ modelBrowserType,
    Store^ store,
    ModelBusReference^ modelBusReference,
    IEnumerable<PickerMetadataBaseAttribute^>^ metadata = null
)
static member CreateDialog : 
        modelBrowserType:Type *
        store:Store *
        modelBusReference:ModelBusReference *
        metadata:IEnumerable<PickerMetadataBaseAttribute> = null -> PickerDialog
Public Shared Function CreateDialog (
    modelBrowserType As Type,
    store As Store,
    modelBusReference As ModelBusReference,
    metadata As IEnumerable(Of PickerMetadataBaseAttribute)
) As PickerDialog

Parameters

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.

Remarks

The store is used for reference fixing and as a service provider.

See Also

CreateDialog Overload
PickerDialog Class
Microsoft.VisualStudio.Modeling.Integration.Shell.Picker Namespace

Return to top