ScanResult.InformationElement Constructors
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 |
|---|---|
| ScanResult.InformationElement(ScanResult+InformationElement) |
Creates an information element by copying another element. |
| ScanResult.InformationElement(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
| ScanResult.InformationElement(Int32, Int32, Byte[]) |
Constructs InformationElements from beacon. |
ScanResult.InformationElement(ScanResult+InformationElement)
Creates an information element by copying another element.
[Android.Runtime.Register(".ctor", "(Landroid/net/wifi/ScanResult$InformationElement;)V", "", ApiSince=30)]
public InformationElement(Android.Net.Wifi.ScanResult.InformationElement rhs);
[<Android.Runtime.Register(".ctor", "(Landroid/net/wifi/ScanResult$InformationElement;)V", "", ApiSince=30)>]
new Android.Net.Wifi.ScanResult.InformationElement : Android.Net.Wifi.ScanResult.InformationElement -> Android.Net.Wifi.ScanResult.InformationElement
Parameters
The information element whose identifiers and bytes are copied.
- Attributes
Remarks
The element identifiers are copied, and the native byte array is cloned. Later changes to the source array do not change the new element's bytes.
Applies to
ScanResult.InformationElement(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected InformationElement(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Wifi.ScanResult.InformationElement : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Wifi.ScanResult.InformationElement
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.
Applies to
ScanResult.InformationElement(Int32, Int32, Byte[])
Constructs InformationElements from beacon.
[Android.Runtime.Register(".ctor", "(II[B)V", "", ApiSince=33)]
public InformationElement(int id, int idExt, byte[] bytes);
[<Android.Runtime.Register(".ctor", "(II[B)V", "", ApiSince=33)>]
new Android.Net.Wifi.ScanResult.InformationElement : int * int * byte[] -> Android.Net.Wifi.ScanResult.InformationElement
Parameters
- id
- Int32
element id
- idExt
- Int32
element id extension
- bytes
- Byte[]
the body of the information element, may contain multiple elements
- Attributes
Remarks
Constructs InformationElements from beacon.
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.