ModelBus.CreateAdapter Method (ModelBusReference, IServiceProvider)
Implements CreateAdapter() method
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
'Dichiarazione
Public Function CreateAdapter ( _
reference As ModelBusReference, _
serviceProvider As IServiceProvider _
) As ModelBusAdapter
public ModelBusAdapter CreateAdapter(
ModelBusReference reference,
IServiceProvider serviceProvider
)
public:
virtual ModelBusAdapter^ CreateAdapter(
ModelBusReference^ reference,
IServiceProvider^ serviceProvider
) sealed
abstract CreateAdapter :
reference:ModelBusReference *
serviceProvider:IServiceProvider -> ModelBusAdapter
override CreateAdapter :
reference:ModelBusReference *
serviceProvider:IServiceProvider -> ModelBusAdapter
public final function CreateAdapter(
reference : ModelBusReference,
serviceProvider : IServiceProvider
) : ModelBusAdapter
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
A reference to a model
- serviceProvider
Type: System.IServiceProvider
A service provider to pass on to the adapter. Can be null.
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
The adapter that was created, or throws an exception if it could not be created.
Implements
IModelBus.CreateAdapter(ModelBusReference, IServiceProvider)
.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.