Aracılığıyla paylaş


IMethodSymbol.AssociatedSymbol Property

Definition

Returns a symbol (e.g. property, event, etc.) associated with the method.

public:
 property Microsoft::CodeAnalysis::ISymbol ^ AssociatedSymbol { Microsoft::CodeAnalysis::ISymbol ^ get(); };
public Microsoft.CodeAnalysis.ISymbol AssociatedSymbol { get; }
public Microsoft.CodeAnalysis.ISymbol? AssociatedSymbol { get; }
member this.AssociatedSymbol : Microsoft.CodeAnalysis.ISymbol
Public ReadOnly Property AssociatedSymbol As ISymbol

Property Value

Remarks

If this method has MethodKind of PropertyGet or PropertySet, returns the property that this method is the getter or setter for. If this method has MethodKind of EventAdd or EventRemove, returns the event that this method is the adder or remover for. Note, the set of possible associated symbols might be expanded in the future to reflect changes in the languages.

Applies to