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
- store
Type: Microsoft.VisualStudio.Modeling.Store
- adapterReference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelingAdapterReference
- serviceProvider
Type: System.IServiceProvider
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root element or null, if the adapter reference is not found.
.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.