Compilation.GetMetadataReference(IAssemblySymbol) 方法

定义

MetadataReference获取对应于程序集符号的对应项。

public:
 Microsoft::CodeAnalysis::MetadataReference ^ GetMetadataReference(Microsoft::CodeAnalysis::IAssemblySymbol ^ assemblySymbol);
public Microsoft.CodeAnalysis.MetadataReference GetMetadataReference (Microsoft.CodeAnalysis.IAssemblySymbol assemblySymbol);
public Microsoft.CodeAnalysis.MetadataReference? GetMetadataReference (Microsoft.CodeAnalysis.IAssemblySymbol assemblySymbol);
member this.GetMetadataReference : Microsoft.CodeAnalysis.IAssemblySymbol -> Microsoft.CodeAnalysis.MetadataReference
Public Function GetMetadataReference (assemblySymbol As IAssemblySymbol) As MetadataReference

参数

assemblySymbol
IAssemblySymbol

目标符号。

返回

适用于