Activity.IsFromStreamingConnection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷活動是透過 Http/Https 連線還是串流傳送,可透過查看 ServiceUrl 屬性來判斷:(1) 所有透過 http/https 傳送訊息的頻道並非串流 (2) 透過串流傳送訊息的頻道的服務網址不以 http/https 開頭。
public bool IsFromStreamingConnection();
member this.IsFromStreamingConnection : unit -> bool
Public Function IsFromStreamingConnection () As Boolean
傳回
如果活動源自串流連線,則為 True。