IErrorTypeSymbol.CandidateSymbols Property

Definition

When constructing this type, there may have been symbols that seemed to be what the user intended, but were unsuitable. For example, a type might have been inaccessible, or ambiguous. This property returns the possible symbols that the user might have intended. It will return no symbols if no possible symbols were found. See the CandidateReason property to understand why the symbols were unsuitable.

public:
 property System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::ISymbol ^> CandidateSymbols { System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::ISymbol ^> get(); };
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISymbol> CandidateSymbols { get; }
member this.CandidateSymbols : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISymbol>
Public ReadOnly Property CandidateSymbols As ImmutableArray(Of ISymbol)

Property Value

Remarks

This only applies if this INamedTypeSymbol has TypeKind TypeKind.Error. If not, an empty ImmutableArray is returned.

Applies to