次の方法で共有


StorageDevice.EndShowStorageDeviceGuide Method

Ends the device selection UI.

Namespace: Microsoft.Xna.Framework.Storage
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static StorageDevice EndShowStorageDeviceGuide (
         IAsyncResult asyncResult
)

Parameters

Return Value

The storage device selected by the user.

Exceptions

Exception type Condition
ArgumentException You must pass to this method the returned IAsyncResult from BeginShowStorageDeviceGuide.
InvalidOperationException An unknown error occcured.

Remarks

Calling BeginShowStorageDeviceGuide when another storage device guide is on screen results in an InvalidOperationException. It is possible to trigger this exception if you call BeginShowStorageDeviceGuide immediately after calling EndShowStorageDeviceGuide (when the dialog is still dismissing itself). To avoid this exception, avoid calling BeginShowStorageDeviceGuide twice, or do not call BeginShowStorageDeviceGuide until a few seconds after calling EndShowStorageDeviceGuide.

See Also

Tasks

How to: Get a StorageDevice Asynchronously

Reference

StorageDevice Class
StorageDevice Members
Microsoft.Xna.Framework.Storage Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista