.Net component and locked classid

  • Thread starter Thread starter Mario Hébert
  • Start date Start date
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
 
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.
 
Back
Top