Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Collection Class

Posted on 2004-10-21
2
Medium Priority
?
177 Views
Last Modified: 2010-04-23
Hi,

I have a class called BookGroup which inheirits from collectionbase. The collection relates to Bookmark items. A bookmark is also a class.

My question is this: is it possible to retrieve the bookmarks parent i.e the bookgroup.

For instance I would like something like

Readonly Property Parent(bookMark as bmkBookMark) as bmkBookGroup
Get
return 'How however I find the bookmarks related bookgroup here
End Get
End Property

Thanks
0
Comment
Question by:zomby_dog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
The_Biochemist earned 500 total points
ID: 12389142
What about:
1) Creating a readonly property in the bookmark class such as 'public readonly property BookGroup() as string' for example.
2) Change the New method of Bookmark to something like 'New(ByVal BookGroup as string)'.
3) Use the new 'New' method to set the value of the variable associated with the BookGroup property

Then you will have an easily accessable method for getting the bookgroup.
0
 
LVL 6

Expert Comment

by:The_Biochemist
ID: 12398125
No Problem!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question