GattSession.MaxPduSizeChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 PDU) 大小變更 (通訊協定資料單位上限時引發的事件。 PDU 也稱為 MTU (最大傳輸單位) 。
每當屬性通訊協定的交涉 MTU (ATT) 變更時,就會引發 MaxPduSizeChanged。 這可由遠端藍牙周邊變更或交涉。 身為開發人員,您無法變更 Windows 本身所使用的值,因為這是由作業系統完全管理的。
另請參閱 GattSession.MaxPduSize 屬性,如前所述是唯讀的。
// Register
event_token MaxPduSizeChanged(TypedEventHandler<GattSession, IInspectable const&> const& handler) const;
// Revoke with event_token
void MaxPduSizeChanged(event_token const* cookie) const;
// Revoke with event_revoker
GattSession::MaxPduSizeChanged_revoker MaxPduSizeChanged(auto_revoke_t, TypedEventHandler<GattSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<GattSession,object> MaxPduSizeChanged;
function onMaxPduSizeChanged(eventArgs) { /* Your code */ }
gattSession.addEventListener("maxpdusizechanged", onMaxPduSizeChanged);
gattSession.removeEventListener("maxpdusizechanged", onMaxPduSizeChanged);
- or -
gattSession.onmaxpdusizechanged = onMaxPduSizeChanged;
Public Custom Event MaxPduSizeChanged As TypedEventHandler(Of GattSession, Object)
事件類型
TypedEventHandler<GattSession,IInspectable>
Windows 需求
應用程式功能 |
bluetooth
|
備註
重要
See the Remarks in the GattSession.MaxPduSize property topic.