Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: Intermediate
Jul 7, 2003

UnregisterEnterpriseService - Unregister an Enterprise Service from the COM+ Catalog

' Unregister an Enterprise Service from the COM+ Catalog
' Note: requires a reference to the System.EnterpriseServices.dll assembly
' Note: applicationID is the name of the COM+ application that contains the 
' components in the assembly - it can be Nothing

' This version identify the enterprise service with its path
' Example: UnregisterEnterpriseService("C:\Temp\TestService.dll", Nothing)

Sub UnregisterEnterpriseService(ByVal servicePath As String, _
    ByVal applicationID As String)
    Dim rh As New System.EnterpriseServices.RegistrationHelper
    rh.UninstallAssembly(servicePath, applicationID)
End Sub

' This version identify the enterprise service with a reference to its assembly

Sub UnregisterEnterpriseService(ByVal asm As System.Reflection.Assembly, _
    ByVal applicationID As String)
    UnregisterEnterpriseService(asm.Location, applicationID)
End Sub
Marco Bellinaso
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap