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
'Declaração
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
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
.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