RelatedAssemblyAttribute.GetRelatedAssemblies(Assembly, Boolean) 方法

定义

获取 AssemblyRelatedAssemblyAttribute指定的实例。

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)

参数

assembly
Assembly

包含 RelatedAssemblyAttribute 实例的程序集。

throwOnError
Boolean

确定方法是否在找不到相关程序集时引发。

返回

相关 Assembly 实例。

适用于