DocumentationCommentId.GetFirstSymbolForDeclarationId 方法

定义

获取与声明 ID 字符串(顺序未定义)匹配的第一个声明符号。

public:
 static Microsoft::CodeAnalysis::ISymbol ^ GetFirstSymbolForDeclarationId(System::String ^ id, Microsoft::CodeAnalysis::Compilation ^ compilation);
public static Microsoft.CodeAnalysis.ISymbol GetFirstSymbolForDeclarationId (string id, Microsoft.CodeAnalysis.Compilation compilation);
public static Microsoft.CodeAnalysis.ISymbol? GetFirstSymbolForDeclarationId (string id, Microsoft.CodeAnalysis.Compilation compilation);
static member GetFirstSymbolForDeclarationId : string * Microsoft.CodeAnalysis.Compilation -> Microsoft.CodeAnalysis.ISymbol
Public Shared Function GetFirstSymbolForDeclarationId (id As String, compilation As Compilation) As ISymbol

参数

id
String
compilation
Compilation

返回

适用于