ModelBusAdapterManager.TryCreateReference Method
The ModelBusAdapterManager will attempt to create a model bus reference to a model from the supplied information.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll)
Syntax
'Declaration
Public Function TryCreateReference ( _
<OutAttribute> ByRef reference As ModelBusReference, _
ParamArray modelLocatorInfo As Object() _
) As Boolean
public bool TryCreateReference(
out ModelBusReference reference,
params Object[] modelLocatorInfo
)
public:
bool TryCreateReference(
[OutAttribute] ModelBusReference^% reference,
... array<Object^>^ modelLocatorInfo
)
member TryCreateReference :
reference:ModelBusReference byref *
modelLocatorInfo:Object[] -> bool
public function TryCreateReference(
reference : ModelBusReference,
... modelLocatorInfo : Object[]
) : boolean
Parameters
reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference%Reference to an model if successful, null otherwise.
modelLocatorInfo
Type: array<Object[]ReferenceContext provided to describe the desired model.
Return Value
Type: Boolean
A flag indicating success or failure
Remarks
This method will not throw an exception if a model bus reference could not be created.
.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.