ConnectedServiceProviderContext.GetServiceFolder(String) Method

Definition

Gets the IVsHierarchyItem for the Connected Service folder with the specified name, or null if the specified folder isn't valid.

public:
 abstract Microsoft::VisualStudio::Shell::IVsHierarchyItem ^ GetServiceFolder(System::String ^ serviceFolderName);
public abstract Microsoft.VisualStudio.Shell.IVsHierarchyItem GetServiceFolder (string serviceFolderName);
abstract member GetServiceFolder : string -> Microsoft.VisualStudio.Shell.IVsHierarchyItem
Public MustOverride Function GetServiceFolder (serviceFolderName As String) As IVsHierarchyItem

Parameters

serviceFolderName
String

The name of the folder that contains the ConnectedService.json file. This is a folder under the "Service Artifacts Root Folder" - i.e. "Service References" for .Net projects or "services" for JavaScript projects.

Returns

An IVsHierarchyItem that represents the folder that contains the ConnectedService.json file. Null is returned if the folder doesn't exist, doesn't contain a ConnectedService.json file, or the ProviderId doesn't match the current Provider's Id.

Applies to