.Net component and locked classid

M

Mario Hébert

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
 
A

Arild Fines

Mario said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top