ModelBusAdapterManager.DoCreateAdapter Method
Actual creation of the ModelBusAdapter instance supported by this ModelBusAdapterManager.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
‘선언
Protected MustOverride Function DoCreateAdapter ( _
reference As ModelBusReference, _
serviceProvider As IServiceProvider _
) As ModelBusAdapter
protected abstract ModelBusAdapter DoCreateAdapter(
ModelBusReference reference,
IServiceProvider serviceProvider
)
protected:
virtual ModelBusAdapter^ DoCreateAdapter(
ModelBusReference^ reference,
IServiceProvider^ serviceProvider
) abstract
abstract DoCreateAdapter :
reference:ModelBusReference *
serviceProvider:IServiceProvider -> ModelBusAdapter
protected abstract function DoCreateAdapter(
reference : ModelBusReference,
serviceProvider : IServiceProvider
) : ModelBusAdapter
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Reference to the model that the adapter should wrap.
- serviceProvider
Type: System.IServiceProvider
ServiceProvider that supplies special services to configure the Adapter
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
The created non-null ModelBusAdapter instance if successful, exception will be thrown otherwise.
Remarks
The IServiceProvider should be used by callers to supply services that implement a private protocol between the caller and the Adapter being created by the AdapterManager. If an AdapterManager does not does not require any special services from the caller, then this ServiceProvider should not be used by the AdapterManager. Note to implementors: In order to retrieve general purpose Services, use the ModelBus's ServiceProvider or any other standard ServiceProvider instead.
.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.