PC Review


Reply
Thread Tools Rate Thread

coversion to c#

 
 
Reza
Guest
Posts: n/a
 
      22nd Oct 2004
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


 
Reply With Quote
 
 
 
 
CJ Taylor
Guest
Posts: n/a
 
      23rd Oct 2004
public class EventSing: IListEventSink
{

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

try {

} catch (Exception ex) { }


}


}

"Reza" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
David Anton
Guest
Posts: n/a
 
      23rd Oct 2004
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
*-----------------------*
 
Reply With Quote
 
Reza
Guest
Posts: n/a
 
      23rd Oct 2004
"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
news:(E-Mail Removed)...
> public class EventSing: IListEventSink
> {
>
> public void OnEvent(Microsoft.SharePoint.SPListEvent listEvent)
> implements Microsoft.SharePoint.IListEventSink.OnEvent {
>
> try {
>
> } catch (Exception ex) { }
>
>
> }
>
>
> }
>
> "Reza" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
CJ Taylor
Guest
Posts: n/a
 
      23rd Oct 2004
Yeah I realized that this morning. My bad. Everythign else should have
been money though, sorry about that.

"Reza" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "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
> news:(E-Mail Removed)...
>> public class EventSing: IListEventSink
>> {
>>
>> public void OnEvent(Microsoft.SharePoint.SPListEvent listEvent)
>> implements Microsoft.SharePoint.IListEventSink.OnEvent {
>>
>> try {
>>
>> } catch (Exception ex) { }
>>
>>
>> }
>>
>>
>> }
>>
>> "Reza" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > 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
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coversion problem John Wright Microsoft VB .NET 2 20th Sep 2006 10:58 PM
Coversion problem WayneF Microsoft Excel Discussion 2 16th Feb 2006 04:14 PM
Coversion Of Fractions To Percentages Saxman Microsoft Excel Misc 9 2nd Aug 2005 09:24 PM
Coversion Help PLEASE! DB Admin Microsoft Access 1 23rd Apr 2004 06:32 AM
stream I/O coversion =?Utf-8?B?dG9tYXN0ZQ==?= Microsoft VC .NET 2 9th Mar 2004 12:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:45 AM.