Object hierarchy HowTo

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Sun, 4 Apr 2004 16:45:38 +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 ... how to achieve this but in VB6 I can declare the Project as ... Employee object (as in this case the model implies that 1 employee can have ...
    (microsoft.public.dotnet.languages.vb)
  • 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)