INavigateToItemProviderFactory.TryCreateNavigateToItemProvider 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.
Creates a new provider, if possible. The IServiceProvider that is passed in may be used to find necessary services to back the INavigateToItemProvider. For example, it could be used to check if a particular package has been loaded by VisualStudio.
public:
bool TryCreateNavigateToItemProvider(IServiceProvider ^ serviceProvider, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Language::NavigateTo::Interfaces::INavigateToItemProvider ^ % provider);
public bool TryCreateNavigateToItemProvider (IServiceProvider serviceProvider, out Microsoft.VisualStudio.Language.NavigateTo.Interfaces.INavigateToItemProvider provider);
abstract member TryCreateNavigateToItemProvider : IServiceProvider * INavigateToItemProvider -> bool
Public Function TryCreateNavigateToItemProvider (serviceProvider As IServiceProvider, ByRef provider As INavigateToItemProvider) As Boolean
Parameters
- serviceProvider
- IServiceProvider
- provider
- INavigateToItemProvider
Returns
True if the provider was successfully created, false otherwise.