ConnectedServiceProviderContext.InitializeUpdateContext 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.
InitializeUpdateContext puts the current connected service session in update mode. This allows providers to update a connected service that already exists in the project.
public:
abstract void InitializeUpdateContext(Microsoft::VisualStudio::Shell::IVsHierarchyItem ^ serviceFolder);
public abstract void InitializeUpdateContext (Microsoft.VisualStudio.Shell.IVsHierarchyItem serviceFolder);
abstract member InitializeUpdateContext : Microsoft.VisualStudio.Shell.IVsHierarchyItem -> unit
Public MustOverride Sub InitializeUpdateContext (serviceFolder As IVsHierarchyItem)
Parameters
- serviceFolder
- IVsHierarchyItem
The IVsHierarchyItem that represents 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.
Exceptions
The specified folder isn't a valid connected service folder. It doesn't have a valid ConnectedService.json file with a matching ProviderId.
GetExtendedDesignerData or SetExtendedDesignerData has already been called on this context.