.Net component and locked classid

Discussion in 'ASP .Net' started by Mario Hébert, Jul 4, 2003.

  1. 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 Hébert, Jul 4, 2003
    #1
    1. Advertising

  2. Mario Hébert

    Arild Fines Guest

    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.
    Arild Fines, Jul 5, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Soni
    Replies:
    0
    Views:
    1,073
  2. Karuppasamy

    com+ component and Component Service

    Karuppasamy, Jan 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    595
    Karuppasamy
    Jan 13, 2004
  3. Matthew Louden
    Replies:
    0
    Views:
    471
    Matthew Louden
    Dec 4, 2003
  4. nicholas
    Replies:
    3
    Views:
    826
    nicholas
    Oct 4, 2004
  5. ilocke
    Replies:
    2
    Views:
    433
    ilocke
    Jun 2, 2007
Loading...

Share This Page