共用方式為


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 實例。

適用於