Microsoft Content Management Server - PAPI: Channel Delete

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2005 > PAPI: Channel Delete





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PAPI: Channel Delete
Victor

2005-03-25, 5:49 pm

I'm currently trying to delete a channel that has no children. User selects a
channel from the tree control and they should be able to delete it. ( I will
add some security later!)
But when executing the delete channel code, nothing happens. No erros, but
the channel is not deleted either. Please give your input as to what I'm
doing wrong.

Private Sub DeleteChannel()
Dim appContext As New CmsApplicationContext
Authenticate(appContext)
Dim currentChannel As Channel = appContext.Searches.GetByGuid(strGuid)

Try
currentChannel.Delete()
Catch ex As Exception
lblMsgDisplay.Text = ex.Message
End Try
End Sub

Regards
V
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com