469,898 Members | 1,418 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Writing a custom section handler for browserCaps

Hi
I am looking to write a custom section handler so that I can populate the MobileCapabilities object from my our custom data rather than the browserCaps section in machine.config.
From my understanding (limited) it looks like you can implement the IConfigurationSectionHandler and use the IConfigurationSectionHandler.Create to intercept this functionality.
It looks like I need to return a MobileCapabilities object from this function. How do I create and return this object? All the properties of MobileCapabilities are read only and I can't seem to find any documentation about doing such a thing.

Ideally I would like to take a look at the source code for System.Web.Mobile.MobileDeviceCapabilitiesSectionH andler. This would help me out no end but this is not present in the source code provided by Rotor (SSCLI).

Any help on overriding mobilecapabilities without having to edit the machine.config would be greatly appreciated.

Cheers

--------------------------------
From: Andy Emmerson

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>uH2MU9C2OEmgUjXIm8okUg==</Id>
Nov 18 '05 #1
1 1261
"Andy Emmerson via .NET 247" <an*******@dotnet247.com> wrote in message
news:el**************@TK2MSFTNGP11.phx.gbl...
Hi
I am looking to write a custom section handler so that I can populate the

MobileCapabilities object from my our custom data rather than the
browserCaps section in machine.config.

Is there any way at all for you to populate MobileCapabilities from
something other than the normal browserCaps section?
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Søren Lund | last post: by
1 post views Thread by Hazzard | last post: by
10 posts views Thread by Eric | last post: by
6 posts views Thread by Tabi | last post: by
2 posts views Thread by Laurent Bugnion | last post: by
7 posts views Thread by =?Utf-8?B?RG91Z2llIEJyb3du?= | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.