Table of Contents

ReflectionDataSet.ContainsAssembly Method

Definition

Namespace
Sandcastle.Core.Reflection
Assembly
Sandcastle.Core.dll

This is used to see if the framework contains an assembly that uses the specified name

public bool ContainsAssembly(string assemblyName)

Parameters

assemblyName string

The assembly name without a path or extension or a strong name value. If a strong name value is specified, a "starts with" comparison on the description is used to see if the assembly is present in the framework. This allows for matches on strong names with processor architecture specified which we don't have. If only a name is given, just the name is compared. Comparisons are case-insensitive.

Returns

bool

True if the framework contains the named assembly, false if not.