Share via


StorageContainer.FileExists Method

Determines whether the specified path refers to an existing file in the StorageContainer.

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

Syntax

public bool FileExists (
         string file
)

Parameters

  • file
    Type: String
    The path and file name to test.

Return Value

true if path refers to an existing file in the StorageContainer and is not null; otherwise, false.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP