XboxLiveDeviceAddress.CreateFromSnapshotBuffer(IBuffer) 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 object from a snapshot stored in a buffer.
Use this method to create an XboxLiveDeviceAddress from the snapshot buffer returned from an earlier call to XboxLiveDeviceAddress.GetSnapshotAsBuffer.
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 ^ CreateFromSnapshotBuffer(IBuffer ^ buffer);
static XboxLiveDeviceAddress CreateFromSnapshotBuffer(IBuffer const& buffer);
public static XboxLiveDeviceAddress CreateFromSnapshotBuffer(IBuffer buffer);
function createFromSnapshotBuffer(buffer)
Public Shared Function CreateFromSnapshotBuffer (buffer As IBuffer) As XboxLiveDeviceAddress
Parameters
- buffer
- IBuffer
A buffer containing an XboxLiveDeviceAddress snapshot.
Returns
The XboxLiveDeviceAddress represented in the snapshot.
Remarks
The snapshot buffer is expected to originate from a previous call to GetSnapshotAsBuffer 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.