RfcommServiceProvider.StartAdvertising 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StartAdvertising(StreamSocketListener) |
開始公告 SDP 屬性。 |
StartAdvertising(StreamSocketListener, Boolean) |
開始公告 SDP 屬性。 |
StartAdvertising(StreamSocketListener)
開始公告 SDP 屬性。
public:
virtual void StartAdvertising(StreamSocketListener ^ listener) = StartAdvertising;
void StartAdvertising(StreamSocketListener const& listener);
public void StartAdvertising(StreamSocketListener listener);
function startAdvertising(listener)
Public Sub StartAdvertising (listener As StreamSocketListener)
參數
- listener
- StreamSocketListener
正在接聽連入連線的 StreamSocketListener。
Windows 需求
應用程式功能 |
bluetooth
|
另請參閱
適用於
StartAdvertising(StreamSocketListener, Boolean)
開始公告 SDP 屬性。
public:
virtual void StartAdvertising(StreamSocketListener ^ listener, bool radioDiscoverable) = StartAdvertising;
/// [Windows.Foundation.Metadata.Overload("StartAdvertisingWithRadioDiscoverability")]
void StartAdvertising(StreamSocketListener const& listener, bool const& radioDiscoverable);
[Windows.Foundation.Metadata.Overload("StartAdvertisingWithRadioDiscoverability")]
public void StartAdvertising(StreamSocketListener listener, bool radioDiscoverable);
function startAdvertising(listener, radioDiscoverable)
Public Sub StartAdvertising (listener As StreamSocketListener, radioDiscoverable As Boolean)
參數
- listener
- StreamSocketListener
正在接聽連入連線的 StreamSocketListener。
- radioDiscoverable
-
Boolean
bool
指出無線電是否可 (true) (false) 。
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
|
應用程式功能 |
bluetooth
|