SymbolDisplay.ToMinimalDisplayParts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convert a symbol to an array of string parts, each of which has a kind. Useful for colorizing the display string.
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Function ToMinimalDisplayParts (symbol As ISymbol, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Parameters
- symbol
- ISymbol
The symbol to be displayed.
- semanticModel
- SemanticModel
Semantic information about the context in which the symbol is being displayed.
- position
- Int32
A position within the SyntaxTree or semanticModel
.
- format
- SymbolDisplayFormat
The formatting options to apply. If null is passed, CSharpErrorMessageFormat will be used.
Returns
A list of display parts.
Remarks
Parts are not localized until they are converted to strings.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示