PickerDialog.CreateDialog<T> Yöntem (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(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
Tür Parametreleri
- T
Parametreler
- 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. |
.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ı