VsTextTemplatingModelingAdapterManager.DoCreateAdapter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Using the ModelBusReference passed as a parameter, creation of a ModelBusAdapter instance is attempted. If successful, the adapter is returned. If not, appropriate exception is thrown.
protected override Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter DoCreateAdapter (Microsoft.VisualStudio.Modeling.Integration.ModelBusReference reference, IServiceProvider serviceProvider);
override this.DoCreateAdapter : Microsoft.VisualStudio.Modeling.Integration.ModelBusReference * IServiceProvider -> Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
Protected Overrides Function DoCreateAdapter (reference As ModelBusReference, serviceProvider As IServiceProvider) As ModelBusAdapter
Parameters
- reference
- Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
Reference that will be used to created the ModelBusAdapter
- serviceProvider
- IServiceProvider
Used to create association between the caller and the referenced model
Returns
The created non-null ModelBusAdapter instance if successful, exception will be thrown otherwise.
Exceptions
Thrown when ModelBusAdapter creation failed for some reason.
Thrown when the argument is null.