----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: theman239283 Message 3 in Discussion Sukh, Unfortunately a public method on a public type is public to all outside the assembly. If the few users who will use your restricted methods have strong names, you could apply the StrongNameIdentityPermission to those methods. StrongNameIdentityPermission(SecurityAction.LinkDemand, PublicKey="0394...4223") Where PublicKey is the public key of the assemblies you want to restrict this method to. If any other assembly tries to call the method decorated with the above attribute, it will result in a securty exception. As an added restriction, you can hide the method from intellisense by applying the EditorBrowsable(EditorBrowsableState.Never)attribute. Alternatively, if you are using .NET 2.0 and if you can move the restricted methods to a separate assembly, you can use the new InternalsVisibleToAttribute. See Friend Assemblies. Hope this helps. Mahesh. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
