By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,671 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,671 IT Pros & Developers. It's quick & easy.

.Net component and locked classid

P: n/a
Is it possible to lock a specific classid for a .net component directly in
the C# source code? I mean like putting an attribute in the assembly.cs file
or elsewhere... Each time i register my new version of the component with
regasm, i want that the objet always keep the initial classid or the one
that i will assign to...

Thanks
Mario Hebert
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mario Hébert wrote:
Is it possible to lock a specific classid for a .net component
directly in the C# source code? I mean like putting an attribute in
the assembly.cs file or elsewhere... Each time i register my new
version of the component with regasm, i want that the objet always
keep the initial classid or the one that i will assign to...


Apply the GuidAttribute to your class.

--
Arild Fines

http://ankhsvn.tigris.org
A Visual Studio .NET Addin for the Subversion version control system.
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.