MinRuntimeVersion (Silverlight Plug-in Object) Home
This page is specific to:Microsoft Version:Silverlight 3
Silverlight
MinRuntimeVersion (Silverlight Plug-in Object)

Sets a value that indicates the earliest Silverlight version that is required in order to run a Silverlight-based application.

Syntax

object Element

<object ...>
  <param name="minRuntimeVersion" value="version"/>
  ...
</object>

Silverlight.js

Silverlight.CreateObject(,,,{minRuntimeVersion:'version'});
-or-
Silverlight.CreateObjectEx({properties:{minRuntimeVersion:'version'}})

JavaScript

Not available.

COM

Not available.

Managed Code

Not available.

Property Value

The version of Silverlight that is required by the application. The default is the currently installed version, or null if Silverlight is not installed.

Remarks

The format of the version string is described in the IsVersionSupported topic.

If an upgrade is required, the Silverlight plug-in displays the message "Click to install the required version". Additionally, if you set the AutoUpgrade property to true, the plug-in will prompt the user to upgrade and then to restart the Web browser.

If an upgrade is required, the following errors occur, regardless of the AutoUpgrade setting:

  • 8001 - Upgrade required.

  • 8002 - Browser restart required.

You can respond to these errors in an OnError handler in order to display your own upgrade and browser restart messages.

See Also

Reference

Concepts

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View