IT Community - Software Programming, Web Development and Technical Support

How can I create the com visible assembly ?

This is a discussion on How can I create the com visible assembly ? within the C# Programming forums, part of the Software Development category; How can I create the com visible assembly ?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 05:17 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question How can I create the com visible assembly ?

How can I create the com visible assembly ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 02:16 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Smile Re: How can I create the com visible assembly ?

The ComVisibleAttribute attribute determines how COM clients access managed code.COM visibility can be set for an entire assembly and then overridden for individual types and type members. If the attribute is not present, the contents of the assembly are visible to COM clients.

If you want the assembly to be visible to COM clients, apply the attribute and set its value to true.

Add the attribute to the assembly. If you do not want the assembly to be visible to COM clients, apply the attribute and set its value to false.

Example
--------

using System;

[assembly: System.Runtime.InteropServices.ComVisible(true)]
namespace DesignLibrary {}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is meant by Satellite assembly in Asp.Net ? mobilegeek ASP and ASP.NET Programming 3 08-08-2007 02:18 AM
What is the Purpose of strong name for assembly ( for all language) kingmaker C# Programming 1 07-26-2007 02:33 PM
ReflectionTypeLoadException occured while calling Assembly.GetTypes() theone Mobile Software Development 1 07-25-2007 02:56 AM
Whats an assembly? prasath ASP and ASP.NET Programming 1 07-19-2007 02:20 AM
Is someone using your assembly? (SecUtil.exe .Net FrameWork Tools Series) Gopisoft VB.NET Programming 0 02-25-2007 09:31 PM


All times are GMT -7. The time now is 11:43 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0