WiFiDirectService.GetSelector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSelector(String) |
Gets an Advanced Query Syntax (AQS) string to be used to find Wi-Fi Direct Service advertisers for a particular service. |
GetSelector(String, IBuffer) |
Gets an Advanced Query Syntax (AQS) string to be used to find Wi-Fi Direct Service advertisers for a particular service, where a given byte sequence appears in the advertiser's service information blob. |
GetSelector(String)
Gets an Advanced Query Syntax (AQS) string to be used to find Wi-Fi Direct Service advertisers for a particular service.
public:
static Platform::String ^ GetSelector(Platform::String ^ serviceName);
/// [Windows.Foundation.Metadata.Overload("GetSelector")]
static winrt::hstring GetSelector(winrt::hstring const& serviceName);
[Windows.Foundation.Metadata.Overload("GetSelector")]
public static string GetSelector(string serviceName);
function getSelector(serviceName)
Public Shared Function GetSelector (serviceName As String) As String
Parameters
- serviceName
-
String
Platform::String
winrt::hstring
The service name to be found.
Returns
The AQS string for the requested advertiser query.
- Attributes
Remarks
Your code uses AQS strings with the search and enumeration methods in the Windows.Devices.Enumeration namespace.
See also
Applies to
GetSelector(String, IBuffer)
Gets an Advanced Query Syntax (AQS) string to be used to find Wi-Fi Direct Service advertisers for a particular service, where a given byte sequence appears in the advertiser's service information blob.
public:
static Platform::String ^ GetSelector(Platform::String ^ serviceName, IBuffer ^ serviceInfoFilter);
/// [Windows.Foundation.Metadata.Overload("GetSelectorWithFilter")]
static winrt::hstring GetSelector(winrt::hstring const& serviceName, IBuffer const& serviceInfoFilter);
[Windows.Foundation.Metadata.Overload("GetSelectorWithFilter")]
public static string GetSelector(string serviceName, IBuffer serviceInfoFilter);
function getSelector(serviceName, serviceInfoFilter)
Public Shared Function GetSelector (serviceName As String, serviceInfoFilter As IBuffer) As String
Parameters
- serviceName
-
String
Platform::String
winrt::hstring
The service name to be found.
- serviceInfoFilter
- IBuffer
A byte sequence that must be found in the advertiser's service information blob.
Returns
The AQS string for the requested advertiser query.
- Attributes
Remarks
Your code uses AQS strings with the search and enumeration methods in the Windows.Devices.Enumeration namespace.