ModelBusAdapterManager.CreateAdapter Method (ModelBusReference)
Create a ModelBusAdapter wrapping the specified model. Throws an exception if the ModelBusAdapter cannot be created.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
'Declaration
Public Function CreateAdapter ( _
reference As ModelBusReference _
) As ModelBusAdapter
public ModelBusAdapter CreateAdapter(
ModelBusReference reference
)
public:
ModelBusAdapter^ CreateAdapter(
ModelBusReference^ reference
)
member CreateAdapter :
reference:ModelBusReference -> ModelBusAdapter
public function CreateAdapter(
reference : ModelBusReference
) : ModelBusAdapter
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Reference to the model that the adapter should wrap.
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
The created ModelBusAdapter instance.
.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.