共用方式為


DocumentationCommentId.GetFirstSymbolForDeclarationId 方法

定義

取得符合宣告識別碼字串、順序未定義的第一個宣告符號。

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

傳回

適用於