Поделиться через


ModelElementBrowser.LoadReference Method

performs the needed steps in order to load the reference in this browser 1. Clears all the previous elements 2. Sets the current status based on the context 3. Load the elements (if needed) This method controls the following states: NoModelRef, NoElementRef, InvalidModelRef if ref==null =>NoModelRef (no model loaded) else if ref is valid model ref =>NoElementRef (need to peek an element) else => InvalidModelRef (couldn't peek an element because the model ref is broken)

Namespace:  Microsoft.VisualStudio.Modeling.Integration.Shell.Picker
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.Shell.10.0.dll)

Syntax

'Декларация
Protected Sub LoadReference ( _
    reference As ModelBusReference _
)
protected void LoadReference(
    ModelBusReference reference
)
protected:
void LoadReference(
    ModelBusReference^ reference
)
member LoadReference : 
        reference:ModelBusReference -> unit 
protected function LoadReference(
    reference : ModelBusReference
)

Parameters

.NET Framework Security

See Also

Reference

ModelElementBrowser Class

Microsoft.VisualStudio.Modeling.Integration.Shell.Picker Namespace