AssemblyMetadata.Create 方法

定义

重载

Create(ModuleMetadata)

创建单模块程序集。

Create(ModuleMetadata[])

创建多模块程序集。

Create(IEnumerable<ModuleMetadata>)

创建多模块程序集。

Create(ImmutableArray<ModuleMetadata>)

创建多模块程序集。

Create(ModuleMetadata)

Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs

创建单模块程序集。

public:
 static Microsoft::CodeAnalysis::AssemblyMetadata ^ Create(Microsoft::CodeAnalysis::ModuleMetadata ^ module);
public static Microsoft.CodeAnalysis.AssemblyMetadata Create (Microsoft.CodeAnalysis.ModuleMetadata module);
static member Create : Microsoft.CodeAnalysis.ModuleMetadata -> Microsoft.CodeAnalysis.AssemblyMetadata
Public Shared Function Create (module As ModuleMetadata) As AssemblyMetadata

参数

module
ModuleMetadata

清单模块。

返回

注解

当它本身被释放时,此对象 module 将释放它。

适用于

Create(ModuleMetadata[])

Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs

创建多模块程序集。

public:
 static Microsoft::CodeAnalysis::AssemblyMetadata ^ Create(... cli::array <Microsoft::CodeAnalysis::ModuleMetadata ^> ^ modules);
public static Microsoft.CodeAnalysis.AssemblyMetadata Create (params Microsoft.CodeAnalysis.ModuleMetadata[] modules);
static member Create : Microsoft.CodeAnalysis.ModuleMetadata[] -> Microsoft.CodeAnalysis.AssemblyMetadata
Public Shared Function Create (ParamArray modules As ModuleMetadata()) As AssemblyMetadata

参数

modules
ModuleMetadata[]

包含程序集的模块。 第一个模块是程序集的清单模块。

返回

例外

modules 为空或包含一个不拥有其映像的模块, (是通过 Copy()) 创建的。

modules 包含 null 元素。

注解

此对象在它本身Dispose()时释放它的元素modules

适用于

Create(IEnumerable<ModuleMetadata>)

Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs

创建多模块程序集。

public:
 static Microsoft::CodeAnalysis::AssemblyMetadata ^ Create(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::ModuleMetadata ^> ^ modules);
public static Microsoft.CodeAnalysis.AssemblyMetadata Create (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ModuleMetadata> modules);
static member Create : seq<Microsoft.CodeAnalysis.ModuleMetadata> -> Microsoft.CodeAnalysis.AssemblyMetadata
Public Shared Function Create (modules As IEnumerable(Of ModuleMetadata)) As AssemblyMetadata

参数

modules
IEnumerable<ModuleMetadata>

包含程序集的模块。 第一个模块是程序集的清单模块。

返回

例外

modules 为空或包含一个不拥有其映像的模块, (是通过 Copy()) 创建的。

modules 包含 null 元素。

注解

此对象在它本身Dispose()时释放它的元素modules

适用于

Create(ImmutableArray<ModuleMetadata>)

Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs
Source:
AssemblyMetadata.cs

创建多模块程序集。

public:
 static Microsoft::CodeAnalysis::AssemblyMetadata ^ Create(System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::ModuleMetadata ^> modules);
public static Microsoft.CodeAnalysis.AssemblyMetadata Create (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ModuleMetadata> modules);
static member Create : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ModuleMetadata> -> Microsoft.CodeAnalysis.AssemblyMetadata
Public Shared Function Create (modules As ImmutableArray(Of ModuleMetadata)) As AssemblyMetadata

参数

modules
ImmutableArray<ModuleMetadata>

包含程序集的模块。 第一个模块是程序集的清单模块。

返回

例外

modules 为空或包含一个不拥有其映像的模块, (是通过 Copy()) 创建的。

modules 包含 null 元素。

注解

此对象在它本身Dispose()时释放它的元素modules

适用于