PickerDialog.CreateDialog Yöntem (Type, Store, ModelBusReference, IEnumerable<PickerMetadataBaseAttribute>)
Bir PickerDialog oluşturur ve onu parametrelere dayalı başlatır.
Ad alanı: Microsoft.VisualStudio.Modeling.Integration.Shell.Picker
Derleme: Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.11.0 (Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.11.0.dll içinde)
Sözdizimi
'Bildirim
Public Shared Function CreateDialog ( _
modelBrowserType As Type, _
store As Store, _
modelBusReference As ModelBusReference, _
metadata As IEnumerable(Of PickerMetadataBaseAttribute) _
) As PickerDialog
public static PickerDialog CreateDialog(
Type modelBrowserType,
Store store,
ModelBusReference modelBusReference,
IEnumerable<PickerMetadataBaseAttribute> metadata
)
Parametreler
- modelBrowserType
Tür: System.Type
- store
Tür: Microsoft.VisualStudio.Modeling.Store
- modelBusReference
Tür: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Dönüş Değeri
Tür: Microsoft.VisualStudio.Modeling.Integration.Shell.Picker.PickerDialog
Özel Durumlar
Exception | Koşul |
---|---|
ArgumentNullException | ModelBus veya modelBrowserType null olduğunda. |
NotSupportedException | Ne zaman modelBrowserType de IModelBrowser uygulayan bir wpf control–based sınıf değil. |
Notlar
Mağaza başvuru düzeltme ve hizmet sağlayıcısı olarak kullanılır.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.
Ayrıca bkz.
Başvuru
Microsoft.VisualStudio.Modeling.Integration.Shell.Picker Ad Alanı