Results 1 to 4 of 4

Thread: Property Access??

  1. #1

    Thread Starter
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681

    Property Access??

    Is there anyway to specify access to a property only from within itself (Friend) and also only from AnotherDll.dll?

    I would rather not have the property public, as it should not be used by all.

    Thanks.

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I don't think so... other than passing a custom security struct... in which the property checks the value... and would refuse to set the private member if the securityvalue wasn't right....

    I assume the dll is one you don't have the source code to...?

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If the second one inherits the first you can use Protected, otherwise I don't think so.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Well...
    Constructors can do much similar way as Properties .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width