Database.Script Method Throwing - ArgumentOutOfRangeException
<p><strong>Hello, I'm running the following code:</strong></p>

<pre><code>database.UserDefinedFunctions[name, schema].Script(dropstoredProcOptions);
</code></pre>

<p>With this as dropstoreProcOptions:</p>

<pre><code>        ScriptingOptions dropstoreProcOptions = new ScriptingOptions();

       dropstoreProcOptions.IncludeIfNotExists = true;
        dropstoreProcOptions.ScriptDrops = true;
        dropstoreProcOptions.IncludeDatabaseContext = false;
</code></pre>

<p>If you run the .Script() function without any parameters no errors are thrown, however once you pass ScriptingOpstions as a parameter the following error is thrown: <strong>ArgumentOutOfRangeException</strong></p>

<p>Any help or suggestions on how I could better debug it would be appreciated.
Thank you.</p>
