語言

RuntimeAnnotatableBase.Item[String] 屬性

定義

取得帶有名稱的值註解,若不存在則回 null 傳。

[System.Runtime.CompilerServices.Nullable(2)]
public virtual object? this[string name] { get; set; }
[<System.Runtime.CompilerServices.Nullable(2)>]
member this.Item(string) : obj with get, set
Default Public Overridable Property Item(name As String) As Object

參數

name
String

要找到註解的關鍵。

屬性值

如果已有指定名稱的註解存在,則該標註的價值。 否則為 null。

屬性

適用於