共用方式為


StorageDevice.BeginShowSelector Method (PlayerIndex, Int32, Int32, AsyncCallback, Object)

Begins the process for displaying the storage device selector user interface, for specifying the player who requested the save operation, for setting the size of data to be written to the storage device, and for naming the callback implemented when the player chooses a device.

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

Syntax

public static IAsyncResult BeginShowSelector (
         PlayerIndex player,
         int sizeInBytes,
         int directoryCount,
         AsyncCallback callback,
         Object state
)

Parameters

  • player
    Type: PlayerIndex
    The PlayerIndex that represents the player who requested the save operation. On Windows, the only valid option is PlayerIndex.One.
  • sizeInBytes
    Type: Int32
    The size, in bytes, of the data to write to the storage device.
  • directoryCount
    Type: Int32
    The number of directories to write to the storage device.
  • callback
    Type: AsyncCallback
    An AsyncCallback that represents the method called when the player chooses a device.
  • state
    Type: Object
    A user-created object used to uniquely identify the request, or null.

Return Value

The IAsyncResult used to determine when the asynchronous request is finished.

See Also

Tasks

What Is Storage?
Getting a StorageDevice Asynchronously
Working with Asynchronous Methods in XNA Game Studio

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP