Object Hierarchy: HowTo

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: tinman (dwesar_at_yahoo.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 09:25:56 +0700

Hi...

I would like to achive the following object model in VB.NET.....not too sure
how to achieve this but in VB6 I can declare the Project as
PublicNotCreatable
so as to prevent external instancing of the Project class....

Example:

    Employee
        |
        | - - - Projects (this is a collection)
                        |
                        | - - - Project

How can I make the Projects and Project object ONLY accessible via the
Employee object ( as in this case the model implies that 1 employee can have
1 or more Projects assigned to him) ?

Appreciate any assistance on this.....

Cheers !



Relevant Pages

  • Object hierarchy HowTo
    ... I would like to achive the following object model in VB.NET.....not too sure ... this but in VB6 I can declare the Project as PublicNotCreatable so as to ...
    (microsoft.public.vb.com)
  • Re: VB6, VB2005, or Something Else?
    ... but that would restrict the C++ applications and other languages ... be the same as .NET object model - incompatible and not usable directly ... Even if you are compiling to native code. ... VB6 TextBoxes also support DDE. ...
    (microsoft.public.vb.general.discussion)
  • Re: DataBinder.Eval(Container.DataItem, "date") when date might be missing
    ... had problems understanding the object model any ideas where I can learn more ... > depending on your DataSource you'll get different types of object ... >>Hi Scott and thanks for the tip. ... >>I tried that yesterday but don't know what type to declare. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Object hierarchy HowTo
    ... Ask in a dotnet group. ... > I would like to achive the following object model in VB.NET.....not too ... > Appreciate any assistance on this..... ...
    (microsoft.public.vb.com)
  • Re: About hwnd
    ... Access is not VB6 (despite a superficial ... it will need to be rewritten to work with the Access object model ... Controls Named hwnd ... So Can Any One Tell Me What Is The Equivalant Property For hwnd In Access ...
    (microsoft.public.access.formscoding)