Share via


ConnectedServicesManager.CanConfigureService Method

Definition

Determines whether or not the specified provider can be configured on the specified project.

public:
 abstract bool CanConfigureService(System::String ^ providerId, System::String ^ providerVersionRange, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ project);
public:
 abstract bool CanConfigureService(Platform::String ^ providerId, Platform::String ^ providerVersionRange, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ project);
 abstract bool CanConfigureService(std::wstring const & providerId, std::wstring const & providerVersionRange, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & project);
public abstract bool CanConfigureService (string providerId, string providerVersionRange, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy project);
abstract member CanConfigureService : string * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy -> bool
Public MustOverride Function CanConfigureService (providerId As String, providerVersionRange As String, project As IVsHierarchy) As Boolean

Parameters

providerId
String

The string identifier of the ConnectedServiceProvider.

providerVersionRange
String

The range of provider versions for which to check. The syntax for specifying a version range is the same syntax as used in the .vsixmanifest InstallationTarget Version attribute. For more information, see https://msdn.microsoft.com/en-us/library/ee943167.aspx.

project
IVsHierarchy

The project to which to check if configuring the service is possible.

Returns

True if a connected service from the specified provider can be configured in the specified project; otherwise, false.

Remarks

CanConfigureService checks if the specified provider is installed, in the acceptable version ranage, and whether there is an installed handler that supports the specified project.

Applies to