Namespace Security

T

TJO

Is there any way to secure a Namespace so that it can only be accessed from
a designated Namespace? I believe there is a way but cannot locate the
exact sytax to do so.

Thanks
 
R

rs_tiin

Hi

Do note that Namespaces is mechanism used to provide a
hierarchy to your classes and not meant as access
specifiers. So there is no way you can specify access
levels based on your namespace

The nearest thing is to provide assembly level access
using the friend(VB)/internal(C#) keywords so that only
classes within the same assembly can acces the entity


hth

regards,

sr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top