Share via


ISymbol.GetAttributes 方法

定義

取得符號的屬性。 如果沒有屬性,則傳回空 IEnumerable<T> 的 。

public:
 System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::AttributeData ^> GetAttributes();
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AttributeData> GetAttributes ();
abstract member GetAttributes : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AttributeData>
Public Function GetAttributes () As ImmutableArray(Of AttributeData)

傳回

適用於