Share via


RelatedAssemblyAttribute.GetRelatedAssemblies(Assembly, Boolean) Method

Definition

Gets Assembly instances specified by RelatedAssemblyAttribute.

public:
 static System::Collections::Generic::IReadOnlyList<System::Reflection::Assembly ^> ^ GetRelatedAssemblies(System::Reflection::Assembly ^ assembly, bool throwOnError);
public static System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> GetRelatedAssemblies (System.Reflection.Assembly assembly, bool throwOnError);
static member GetRelatedAssemblies : System.Reflection.Assembly * bool -> System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>
Public Shared Function GetRelatedAssemblies (assembly As Assembly, throwOnError As Boolean) As IReadOnlyList(Of Assembly)

Parameters

assembly
Assembly

The assembly containing RelatedAssemblyAttribute instances.

throwOnError
Boolean

Determines if the method throws if a related assembly could not be located.

Returns

Related Assembly instances.

Applies to