語言

TransportHeaders.Item[Object] 屬性

定義

取得或設定與指定金鑰相關的傳輸標頭。

public:
 property System::Object ^ default[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
public object this[object key] { get; set; }
public object this[object key] { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.Item(obj) : obj with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.Item(obj) : obj with get, set
Default Public Property Item(key As Object) As Object

參數

key
Object

該 String 請求標頭所關聯的。

屬性值

與該金鑰相關聯的傳輸標頭,或 null 若找不到金鑰。

實作

屬性

備註

key參數必須是 String。

適用於