XboxLiveDeviceAddress.CreateFromSnapshotBytes(Byte[]) 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.
Creates an XboxLiveDeviceAddress from a snapshot stored as an array of bytes.
Use this method to create an XboxLiveDeviceAddress object from a saved snapshot retrieved with the XboxLiveDeviceAddress.GetSnapshotAsBytes method.
Important
This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.
public:
static XboxLiveDeviceAddress ^ CreateFromSnapshotBytes(Platform::Array <byte> ^ buffer);
static XboxLiveDeviceAddress CreateFromSnapshotBytes(winrt::array_view <byte> const& buffer);
public static XboxLiveDeviceAddress CreateFromSnapshotBytes(byte[] buffer);
function createFromSnapshotBytes(buffer)
Public Shared Function CreateFromSnapshotBytes (buffer As Byte()) As XboxLiveDeviceAddress
Parameters
- buffer
-
Byte[]
byte[]
The Byte array containing the snapshot.
Returns
The XboxLiveDeviceAddress represented by the snapshot.
Remarks
The snapshot bytes are expected to originate from a previous call to GetSnapshotAsBytes on the local or remote device, without modification. If the contents of the snapshot have been altered or corrupted, then an XboxLiveDeviceAddress object is returned; but the IsValid property is false, and attempts to use the XboxLiveDeviceAddress to create an endpoint pair will fail.