The ShelCustomUserOptions object manages the additional personal preferences in scripting, created as persistent variables in CUSTOMSHELL.vb. You can call it as:
<variable> = ShellCustomUserOptions.<preference>
An example:
If ShellCustomUserOptions.PLN_LastPublication > 0 Then
Define new persistent variable in CustomShell.vb
1.Open the add-in solution in VBExpress and then open Shell.VB.
2.Locate the following code:
<XmlRoot("SiteShellUserOptions")> _
Public Class ShellCustomUserOptions
Inherits CustomUserOptions
3.On the appropriate position below it, add a new line such as:
4.<XmlAttribute()> Public <variablename> As <variabletype> = <defaultvalue>
where:
o<variablename> is an unique name for the persistent variable,e.g. PLN_LastPublication or something similar. .
o<variabletype> is one of standard VB.NET types, as String, Boolean etc.
o<default value> is the default value for the variable, until user changes it.
You need to specify all of the above.