Partager via


VsTextTemplatingModelingAdapterManager.FindStoreRoot Method (Store, ModelingAdapterReference, IServiceProvider)

 

Given a cached store, find the model root within it for the given adapter reference.

Namespace:   Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)

Syntax

protected virtual ModelElement FindStoreRoot(
    Store store,
    ModelingAdapterReference adapterReference,
    IServiceProvider serviceProvider
)
protected:
virtual ModelElement^ FindStoreRoot(
    Store^ store,
    ModelingAdapterReference^ adapterReference,
    IServiceProvider^ serviceProvider
)
abstract FindStoreRoot : 
        store:Store *
        adapterReference:ModelingAdapterReference *
        serviceProvider:IServiceProvider -> ModelElement
override FindStoreRoot : 
        store:Store *
        adapterReference:ModelingAdapterReference *
        serviceProvider:IServiceProvider -> ModelElement
Protected Overridable Function FindStoreRoot (
    store As Store,
    adapterReference As ModelingAdapterReference,
    serviceProvider As IServiceProvider
) As ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

The root element or null, if the adapter reference is not found.

See Also

VsTextTemplatingModelingAdapterManager Class
Microsoft.VisualStudio.TextTemplating.Modeling Namespace

Return to top