Compartir a través de


IProfferService Interface

Enables a VSPackage to offer new services through the Visual Studio environment that are not implemented natively by the environment. In effect, it provides the mechanism through which VSPackages can contribute to the environment. The IProfferService interface is part of SProfferService.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
<InterfaceTypeAttribute()> _
<GuidAttribute("CB728B20-F786-11CE-92AD-00AA00A74CD0")> _
Public Interface IProfferService
'Uso
Dim instance As IProfferService
[InterfaceTypeAttribute()]
[GuidAttribute("CB728B20-F786-11CE-92AD-00AA00A74CD0")]
public interface IProfferService
[InterfaceTypeAttribute()]
[GuidAttribute(L"CB728B20-F786-11CE-92AD-00AA00A74CD0")]
public interface class IProfferService
[<InterfaceTypeAttribute()>]
[<GuidAttribute("CB728B20-F786-11CE-92AD-00AA00A74CD0")>]
type IProfferService =  interface end
public interface IProfferService

Remarks

VSPackage creators must register in the Windows registry the services it makes available through the environment in order to make them accessible to users. User then obtains the service by calling QueryService. For more information, see Loading VSPackages.

A VSPackage cannot replace the implementation of a service that is already provided by the environment or another loaded VSPackage. Therefore, if a service is already provided at the time an attempt to proffer the same service is made, the ProfferService method will fail.

See illustrations of the implementation and/or calling of this interface in the samples Basic Edit Sample and Figures Language Service.

Notes to Implementers

Notes to Callers

See Also

Reference

IProfferService Members

Microsoft.VisualStudio.Shell.Interop Namespace