Activity.GetCustomProperty(String) 方法

定義

傳回對應至所指定屬性名稱的物件。

C#
public object? GetCustomProperty (string propertyName);

參數

propertyName
String

與對象相關聯的名稱。

傳回

對應至屬性名稱的物件 (如果有找到的話);否則為 null

適用於

產品 版本
.NET 5, 6, 7, 8, 9