Table of Contents

Class MicrosoftSilverlightPathProvider

Namespace
AsmResolver.DotNet
Assembly
AsmResolver.DotNet.dll

Provides a mechanism for locating installations of Microsoft Silverlight on a Windows machine.

public sealed class MicrosoftSilverlightPathProvider : SilverlightPathProvider
Inheritance
MicrosoftSilverlightPathProvider
Inherited Members

Constructors

MicrosoftSilverlightPathProvider()

Creates a new Silverlight path provider using the default Program Files directories.

public MicrosoftSilverlightPathProvider()

MicrosoftSilverlightPathProvider(IEnumerable<string>, IEnumerable<string>)

Creates a new Silverlight path provider using the provided Program Files directories.

public MicrosoftSilverlightPathProvider(IEnumerable<string> programFiles32BitDirectories, IEnumerable<string> programFiles64BitDirectories)

Parameters

programFiles32BitDirectories IEnumerable<string>

The collection of 32-bit Program Files directories to consider.

programFiles64BitDirectories IEnumerable<string>

The collection of 64-bit Program Files directories to consider.

Properties

Instance

Gets the singleton instance of the MicrosoftSilverlightPathProvider class.

public static MicrosoftSilverlightPathProvider Instance { get; }

Property Value

MicrosoftSilverlightPathProvider

Methods

TryGetCompatibleReferenceRuntime(Version, bool, out SilverlightInstallation?)

Attempts to obtain the most compatible reference runtime present on the current system given a Silverlight version.

public override bool TryGetCompatibleReferenceRuntime(Version version, bool is32Bit, out SilverlightInstallation? runtime)

Parameters

version Version

The version of the runtime the Silverlight binary is targeting.

is32Bit bool

true if the 32-bits version should be preferred.

runtime SilverlightInstallation

The located runtime installation, or null if none was found.

Returns

bool

true if the runtime was located successfully, false otherwise.

TryGetCompatibleRuntime(Version, bool, out SilverlightInstallation?)

Attempts to obtain the most compatible implementation runtime present on the current system given a Silverlight version.

public override bool TryGetCompatibleRuntime(Version version, bool is32Bit, out SilverlightInstallation? runtime)

Parameters

version Version

The version of the runtime the Silverlight binary is targeting.

is32Bit bool

true if the 32-bits version should be preferred.

runtime SilverlightInstallation

The located runtime installation, or null if none was found.

Returns

bool

true if the runtime was located successfully, false otherwise.