IProfferService.RevokeService(UInt32) 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.
Prevents third-party clients from accessing a specified service.
public:
int RevokeService(System::UInt32 dwCookie);
public:
int RevokeService(unsigned int dwCookie);
int RevokeService(unsigned int dwCookie);
public int RevokeService (uint dwCookie);
abstract member RevokeService : uint32 -> int
Public Function RevokeService (dwCookie As UInteger) As Integer
Parameters
- dwCookie
- UInt32
[in] Identifier of the specified service that is returned by a call to ProfferService(Guid, IServiceProvider, UInt32).
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From proffserv.idl:
HRESULT IProfferService::RevokeService(
[in] DWORD dwCookie
);
This method is rarely used. Normally, once a VSPackage proffers its services, they remain available until Visual Studio is shut down. That is, the environment handles revoking services automatically.
If a service is not currently provided at the time an attempt is made to revoke it, the RevokeService method will fail and return S_FALSE.