AssemblyIdentity.FromAssemblyDefinition(Assembly) 方法

定义

从给定运行时程序集检索程序集定义标识。

public:
 static Microsoft::CodeAnalysis::AssemblyIdentity ^ FromAssemblyDefinition(System::Reflection::Assembly ^ assembly);
public static Microsoft.CodeAnalysis.AssemblyIdentity FromAssemblyDefinition (System.Reflection.Assembly assembly);
static member FromAssemblyDefinition : System.Reflection.Assembly -> Microsoft.CodeAnalysis.AssemblyIdentity
Public Shared Function FromAssemblyDefinition (assembly As Assembly) As AssemblyIdentity

参数

assembly
Assembly

运行时程序集。

返回

程序集定义标识。

例外

assembly 为 null。

适用于