RelatedAssemblyAttribute.GetRelatedAssemblies(Assembly, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.