Export (0) Print
Expand All

StorageContainer.TitleLocation Property

Gets the file path to the location of the title storage space.

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

public static string TitleLocation { get; }

Property Value

The title's install location based on the current platform.

Use this member to create full paths to files in the same location as the game executable. For example:

private static FileStream OpenTitleFile(
    string filename, FileMode mode, FileAccess access )
    string fullpath = Path.Combine( StorageContainer.TitleLocation, filename );
    return File.Open( fullpath, mode, access );

Xbox 360, Windows XP SP2, Windows Vista

© 2014 Microsoft