Share via


VsTextTemplatingModelingAdapterManager.FindStoreRoot Method

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.10.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll)

Syntax

'Declaration
Protected Overridable Function FindStoreRoot ( _
    store As Store, _
    adapterReference As ModelingAdapterReference, _
    serviceProvider As IServiceProvider _
) As ModelElement
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 function FindStoreRoot(
    store : Store, 
    adapterReference : ModelingAdapterReference, 
    serviceProvider : IServiceProvider
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
The root element or null, if the adapter reference is not found.

.NET Framework Security

See Also

Reference

VsTextTemplatingModelingAdapterManager Class

Microsoft.VisualStudio.TextTemplating.Modeling Namespace