1.Add a new setting, set the name and one of displayed types.
2.Inside your VS.Net open the Settings with the Xml Editor.
3.Locate your new setting:
<Setting Name="ReplaceSomething" Type="System.String" Scope="Application">
<Value Profile="(Default)">
</Value>
</Setting>
4.Edit the Type attribute in my case, i changed to:
<Setting Name="ReplaceSomething" Type="RegExHttpModule.RegExReplaceRule" Scope="Application">
<Value Profile="(Default)">
</Value>
</Setting>
5.And now place the Xml Serialization version of the object:
<Setting Name="ReplaceSomething" Type="RegExHttpModule.RegExReplaceRule" Scope="Application">
<Value Profile="(Default)">
<RegExReplaceRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UrlRegularEx>1</UrlRegularEx>
<FileContentRegularEx>2</FileContentRegularEx>
<FileContentReplace>3</FileContentReplace>
</RegExReplaceRule>
</Value>
</Setting>
6.Now you can close de Xml Editor and click over the Settings file.
No comments:
Post a Comment