IMethodSymbol.AssociatedSymbol Property
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.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin