Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

Remote a DataTable?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lucius - 26 Jun 2007 20:11 GMT
I have a class that is a subclass of a subclass of a DataTable. I
would like to Remote an instance of it (SingleCall), but if I recall
correctly only classes that inherit from MarshalByRefObject can be
Remoted.

So how can I remote my DataTable-inheriting class? Is it possible to
iplement all of the Remoting Interfaces that make up
MarshalByRefObject and make the class implement that? Help!

Thanks.
WenYuan Wang [MSFT] - 27 Jun 2007 10:48 GMT
Hello Lucius,

You are correct. Marshal is necessary in .net remoting world.
However, the DataSet and DataTable objects has inherited from
MarshalByValueComponent, and support the ISerializable interface for .NET
Framework remoting. These are the only ADO.NET objects that you can use for
NET Framework remoting. Please check the NOTE part in following document.
http://msdn2.microsoft.com/en-us/library/system.data.datatable.aspx
[DataTable Class]

Therefore, it is not necessary for you to implement all of the Remoting
Interfaces again in new DataTable-Inheriting class. Just declare it as
Serializable. Such as:

[Serializable]
class MyTable:DataTable
{...}

Hope this helps.
Sincerley,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
WenYuan Wang [MSFT] - 29 Jun 2007 13:20 GMT
Hello Lucius,

This is Wen Yuan again.
Have you resolved the issue so far or met any further issue?
If so, please feel free to update here again. We are glad to assist.

Have great day,
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
lucius - 30 Jun 2007 05:07 GMT
All done, thanks for the help.

>Hello Lucius,
>
[quoted text clipped - 8 lines]
>==================================================
>This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.