Partilhar via


Método IProfferService.RevokeService (UInt32)

 

Publicado: agosto de 2016

Impede que terceiros clientes acessando um serviço especificado.

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

Sintaxe

int RevokeService(
    uint dwCookie
)
int RevokeService(
    unsigned int dwCookie
)
abstract RevokeService : 
        dwCookie:uint32 -> int
Function RevokeService (
    dwCookie As UInteger
) As Integer

Parâmetros

Valor Retornado

Type: System.Int32

Se o método for bem-sucedido, ele retornará S_OK. Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De proffserv.idl:

HRESULT IProfferService::RevokeService(
   [in] DWORD dwCookie
);

Esse método é raramente usado. Normalmente, quando um VSPackage proffers seus serviços, eles permanecem disponíveis até Visual Studio for desligado. Isto é, o ambiente trata automaticamente os serviços de revogação.

Se um serviço não estiver atualmente fornecidas no momento é feita uma tentativa de revogá-lo, o RevokeService método falhará e retornará S_FALSE.

Confira Também

Interface IProfferService
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao início