coversion to c#

  • Thread starter Thread starter Reza
  • Start date Start date
R

Reza

How can I change the following code to the equivalent in C#



Public Class EventSink : Implements IListEventSink

Public Sub OnEvent(ByVal listEvent As Microsoft.SharePoint.SPListEvent)
Implements Microsoft.SharePoint.IListEventSink.OnEvent

On Error Resume Next
 
public class EventSing: IListEventSink
{

public void OnEvent(Microsoft.SharePoint.SPListEvent listEvent)
implements Microsoft.SharePoint.IListEventSink.OnEvent {

try {

} catch (Exception ex) { }


}


}
 
See my reply in the C# group.

1. There is no implements keyword in C#

2. You must realize that to replace that "On Error Resume Next" you
would have to reproduce that try/catch block for *every single*
statement.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
"implement is not supported in C#" .I found the correct syntax as follow:

Microsoft.SharePoint.IListEventSink.OnEvent(Microsoft.SharePoint.SPListEvent
listEvent)
{
}

thanks for your help anyways,
Reza
 
Yeah I realized that this morning. My bad. Everythign else should have
been money though, sorry about that.

Reza said:
"implement is not supported in C#" .I found the correct syntax as follow:

Microsoft.SharePoint.IListEventSink.OnEvent(Microsoft.SharePoint.SPListEvent
listEvent)
{
}

thanks for your help anyways,
Reza
"CJ Taylor" <cege [ahh ttt] tavayn wooohooo hooo ohhh com> wrote in
message
public class EventSing: IListEventSink
{

public void OnEvent(Microsoft.SharePoint.SPListEvent listEvent)
implements Microsoft.SharePoint.IListEventSink.OnEvent {

try {

} catch (Exception ex) { }


}


}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top