次の方法で共有


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)

Syntax

public static string TitleLocation { get; }

Property Value

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

Remarks

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 );
}

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista