共用方式為


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

目標符號。

傳回

適用於