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
programFiles32BitDirectoriesIEnumerable<string>The collection of 32-bit Program Files directories to consider.
programFiles64BitDirectoriesIEnumerable<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
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
versionVersionThe version of the runtime the Silverlight binary is targeting.
is32Bitbooltrueif the 32-bits version should be preferred.runtimeSilverlightInstallationThe located runtime installation, or
nullif none was found.
Returns
- bool
trueif the runtime was located successfully,falseotherwise.
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
versionVersionThe version of the runtime the Silverlight binary is targeting.
is32Bitbooltrueif the 32-bits version should be preferred.runtimeSilverlightInstallationThe located runtime installation, or
nullif none was found.
Returns
- bool
trueif the runtime was located successfully,falseotherwise.