How to obtain object scope id?

3 posts, 0 answers
  1. Martin
    Martin avatar
    2 posts
    Member since:
    Jan 2009

    Posted 02 Nov 2010 Link to this post

    Hi,

    is there a way to obtain the id of an object scope. I need to save this information in order to perform some actions within my changetracker. In debugging I see that the object scopes are named "object scope 1", "object scope 2",... Is there a way to obtain this id?

    Thanks,
    Martin
  2. Martin
    Martin avatar
    2 posts
    Member since:
    Jan 2009

    Posted 02 Nov 2010 Link to this post

    ...and if it is not possible to obtain the id of the object scope is there another unique identifier for an object scope?
  3. DevCraft banner
  4. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 Nov 2010 Link to this post

    Hi Martin,

    Unfortunately there is no way to get the internal id of a scope. You can however use the GetHashCode() method to obtain a unique number associated with a scope. Just note that the GetHashCode() method returns an Int32 value, and that might not be correct for 64bit applications. But you should not experience any problems if your application is 32bit.

    Kind regards,
    Alexander
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top