DnsResolver.RawQuery 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
| Name | Description |
|---|---|
| RawQuery(Network, Byte[], DnsResolverFlag, IExecutor, CancellationSignal, DnsResolver+ICallback) |
Send a raw DNS query. |
| RawQuery(Network, String, Int32, DnsResolverType, DnsResolverFlag, IExecutor, CancellationSignal, DnsResolver+ICallback) |
Send a DNS query with the specified name, class and query type. |
RawQuery(Network, Byte[], DnsResolverFlag, IExecutor, CancellationSignal, DnsResolver+ICallback)
Send a raw DNS query.
[Android.Runtime.Register("rawQuery", "(Landroid/net/Network;[BILjava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/net/DnsResolver$Callback;)V", "", ApiSince=29)]
public void RawQuery(Android.Net.Network? network, byte[] query, Android.Net.DnsResolverFlag flags, Java.Util.Concurrent.IExecutor executor, Android.OS.CancellationSignal? cancellationSignal, Android.Net.DnsResolver.ICallback callback);
[<Android.Runtime.Register("rawQuery", "(Landroid/net/Network;[BILjava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/net/DnsResolver$Callback;)V", "", ApiSince=29)>]
member this.RawQuery : Android.Net.Network * byte[] * Android.Net.DnsResolverFlag * Java.Util.Concurrent.IExecutor * Android.OS.CancellationSignal * Android.Net.DnsResolver.ICallback -> unit
Parameters
- network
- Network
Network specifying which network to query on. null for query on default network.
- query
- Byte[]
blob message to query. This value cannot be null.
- flags
- DnsResolverFlag
flags as a combination of the FLAGS_* constants. Value is one of the following: FLAG_EMPTY; FLAG_NO_RETRY; FLAG_NO_CACHE_STORE; FLAG_NO_CACHE_LOOKUP
- executor
- IExecutor
The Executor that the callback should be executed on. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
- cancellationSignal
- CancellationSignal
used by the caller to signal if the query should be cancelled. May be null.
- callback
- DnsResolver.ICallback
a Callback which will be called to notify the caller of the result of dns query. This value cannot be null.
- Attributes
Remarks
Android reference for android.net.DnsResolver.rawQuery.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RawQuery(Network, String, Int32, DnsResolverType, DnsResolverFlag, IExecutor, CancellationSignal, DnsResolver+ICallback)
Send a DNS query with the specified name, class and query type.
[Android.Runtime.Register("rawQuery", "(Landroid/net/Network;Ljava/lang/String;IIILjava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/net/DnsResolver$Callback;)V", "", ApiSince=29)]
public void RawQuery(Android.Net.Network? network, string domain, int nsClass, Android.Net.DnsResolverType nsType, Android.Net.DnsResolverFlag flags, Java.Util.Concurrent.IExecutor executor, Android.OS.CancellationSignal? cancellationSignal, Android.Net.DnsResolver.ICallback callback);
[<Android.Runtime.Register("rawQuery", "(Landroid/net/Network;Ljava/lang/String;IIILjava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/net/DnsResolver$Callback;)V", "", ApiSince=29)>]
member this.RawQuery : Android.Net.Network * string * int * Android.Net.DnsResolverType * Android.Net.DnsResolverFlag * Java.Util.Concurrent.IExecutor * Android.OS.CancellationSignal * Android.Net.DnsResolver.ICallback -> unit
Parameters
- network
- Network
Network specifying which network to query on. null for query on default network.
- domain
- String
domain name to query. This value cannot be null.
- nsClass
- Int32
dns class as one of the CLASS_* constants. Value is one of the following: CLASS_IN
- nsType
- DnsResolverType
dns resource record (RR) type as one of the TYPE_* constants. Value is one of the following: TYPE_A; TYPE_AAAA; TYPE_HTTPS
- flags
- DnsResolverFlag
flags as a combination of the FLAGS_* constants. Value is one of the following: FLAG_EMPTY; FLAG_NO_RETRY; FLAG_NO_CACHE_STORE; FLAG_NO_CACHE_LOOKUP
- executor
- IExecutor
The Executor that the callback should be executed on. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
- cancellationSignal
- CancellationSignal
used by the caller to signal if the query should be cancelled. May be null.
- callback
- DnsResolver.ICallback
a Callback which will be called to notify the caller of the result of dns query. This value cannot be null.
- Attributes
Remarks
Android reference for android.net.DnsResolver.rawQuery.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.