Partager via


ContentManager.RootDirectory Property

Gets or sets the root directory associated with this ContentManager.

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

Syntax

public string RootDirectory { get; set; }

Property Value

The root directory associated with this ContentManager.

Exceptions

Exception type Condition
ArgumentNullException RootDirectory cannot be null.
InvalidOperationException This property cannot be changed after content has been loaded into the ContentManager.

See Also

Reference

ContentManager Class
ContentManager Members
Microsoft.Xna.Framework.Content Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone