on 03-08-2006 10:14 AM
Public Class AdvanceLogon
Inherits CombinedDestination
Public Overrides Property ConnectionString() As String
Get
End Get
Set(ByVal Value As String)
End Set
End Property
End Class
when i complie the code, it gives the error ConnectionString is not overidable because it is a part of internal class of CombinedDestination class. How we can hide internal class property ConnectionString
I assume you want to hide destination.Internal.ConnectionString, because it contains the cleartext password?
You either hide the whole "Internal" property (I write C# syntax):
[Browsable(false)]
public new IDestination Internal
{
get
{
return base.Internal;
}
}
But this would hide all properties that don't appear on first level, e.g. SSO stuff.
You could inhertit some classes from Destination, SAPLogonDestination and so on and override ConnectionString to make it invisible. But then you would need to tell CombinedDestination's TypeConverter to use the other (inherited) classes.
You could also write a Designer (that contains a PropertyFilter) or some CustomTypeDescriptor or other fance stuff.
In the end it may be simpler to create your own replacement of CombinedDestination or to create a custom login form that fits your needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I click on the Internal property of CombinedDestination, It will shown all the property except ConnectionString because it shows password. Internal is based on DestinationType of CombinedDestination. I can inherit some class from Destination and SAPLogonDestination. But, I don't know how to control through DestinationType of CombinedDestination.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.