Udostępnij za pośrednictwem


INavigateToItemProviderFactory.TryCreateNavigateToItemProvider Method

Definition

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

Returns

True if the provider was successfully created, false otherwise.

Applies to