다음을 통해 공유


IProfferService.RevokeService Method

Prevents third-party clients from accessing a specified service.

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

Syntax

‘선언
Function RevokeService ( _
    dwCookie As UInteger _
) As Integer
‘사용 방법
Dim instance As IProfferService
Dim dwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.RevokeService(dwCookie)
int RevokeService(
    uint dwCookie
)
int RevokeService(
    [InAttribute] unsigned int dwCookie
)
abstract RevokeService : 
        dwCookie:uint32 -> int 
function RevokeService(
    dwCookie : uint
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IProfferService Interface

IProfferService Members

Microsoft.VisualStudio.Shell.Interop Namespace