AssemblyIdentity.IsInFramework(String, String) Method

Definition

Returns true if this assembly is part of the given framework. identifier is “.NETFramework” or “Silverlight”, etc. and the version string looks like this: “4.5” or “v4.5”, or “v4.0.30319" If frameworkVersion is null or empty, return true if this assembly is present in any of the given framework versions If both arguments are null or empty strings, return true if this assembly is present in any of the frameworks

public:
 bool IsInFramework(System::String ^ frameworkIdentifier, System::String ^ frameworkVersion);
public bool IsInFramework (string frameworkIdentifier, string frameworkVersion);
member this.IsInFramework : string * string -> bool
Public Function IsInFramework (frameworkIdentifier As String, frameworkVersion As String) As Boolean

Parameters

frameworkIdentifier
String
frameworkVersion
String

Returns

Applies to