VsTextTemplatingModelingAdapterManager.DoCreateAdapter Method
Creates a ModelBusAdapter from a ModelBusReference.
Namespace: Microsoft.VisualStudio.TextTemplating.Modeling
Assembly: Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll)
Syntax
'Declaration
Protected Overrides Function DoCreateAdapter ( _
reference As ModelBusReference, _
serviceProvider As IServiceProvider _
) As ModelBusAdapter
protected override ModelBusAdapter DoCreateAdapter(
ModelBusReference reference,
IServiceProvider serviceProvider
)
protected:
virtual ModelBusAdapter^ DoCreateAdapter(
ModelBusReference^ reference,
IServiceProvider^ serviceProvider
) override
abstract DoCreateAdapter :
reference:ModelBusReference *
serviceProvider:IServiceProvider -> ModelBusAdapter
override DoCreateAdapter :
reference:ModelBusReference *
serviceProvider:IServiceProvider -> ModelBusAdapter
protected override function DoCreateAdapter(
reference : ModelBusReference,
serviceProvider : IServiceProvider
) : ModelBusAdapter
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Reference from which to create the adapter.
- serviceProvider
Type: System.IServiceProvider
Service provider used to create an association between the caller and the referenced model.
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
A new 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.