473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

coversion to c#

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
Nov 21 '05 #1
4 2248
public class EventSing: IListEventSink
{

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

try {

} catch (Exception ex) { }
}
}

"Reza" <re**@microsoft.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2
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
*-----------------------*
Nov 21 '05 #3
"implement is not supported in C#" .I found the correct syntax as follow:

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

thanks for your help anyways,
Reza
"CJ Taylor" <cege [ahh ttt] tavayn wooohooo hooo ohhh com> wrote in message
news:O3*************@TK2MSFTNGP12.phx.gbl...
public class EventSing: IListEventSink
{

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

try {

} catch (Exception ex) { }
}
}

"Reza" <re**@microsoft.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
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


Nov 21 '05 #4
Yeah I realized that this morning. My bad. Everythign else should have
been money though, sorry about that.

"Reza" <re**@microsoft.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
"implement is not supported in C#" .I found the correct syntax as follow:

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

thanks for your help anyways,
Reza
"CJ Taylor" <cege [ahh ttt] tavayn wooohooo hooo ohhh com> wrote in
message
news:O3*************@TK2MSFTNGP12.phx.gbl...
public class EventSing: IListEventSink
{

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

try {

} catch (Exception ex) { }
}
}

"Reza" <re**@microsoft.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
> 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
>
>



Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: GerritM | last post by:
I downloaded and tried the recently announced dirsync program. It looks nice, but... I have two presumably identical directories: one at home and one at work. I keep them synchronized by means...
19
by: MiniDisc_2k2 | last post by:
Okay, here's a question about the standard. What does it say about unsigned/signed mismatches in a comparison statement: char a = 3; unsigned char b = 255; if (a<b) Now what's the real...
14
by: Dave | last post by:
Hello all, Can anybody help with the problem below? I'm trying to define a conversion function that converts objects to function pointers and am getting a compile error on the line indicated...
3
by: ItsMe | last post by:
Hi Guyz, I'm developing some application using third party api. They have given me sample project which is in VB6.0. I'm a newbie in vb.net. and the classic vb works perfectly alright. My job is...
4
by: Jim Florence | last post by:
Hello, I've just started on .NET and was asked if there was an easy way to convert a VB.NET app to a web based version without having to re-code the whole thing Many thanks for any pointers ...
6
by: SandyMan | last post by:
Hi, I am able to open a binary file for reading but can someone tell me as how to go about converting a Binary file to ASCII file using C. Thanks In Advance SandyMan
2
by: John Wright | last post by:
I have the following code that was converted from C# Machine.Shift.Left(data(63), 24) Or Machine.Shift.Left(data(62), 16) Or Machine.Shift.Left(data(61), 8) Or data(60) Of course this...
2
by: hsegoy1979 | last post by:
Dear All Can anyone provide me link for xml to dtd conversion or to download free xml to dtd conversion tool Thankx in Advance Regards Yogesh
11
by: swethak | last post by:
hi. i want to convert xml to java code using php .Plz tell that is it possible? If it possible plz give some idea about that.?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.