Description
The ComponentFlags.NotSaved
field is a member of the ComponentFlags
enumeration in the Sandbox API. It is used to indicate that a component should not be saved to disk. This flag can be useful for components that are temporary or should not persist between sessions.
Usage
Use the ComponentFlags.NotSaved
flag when you want to ensure that a component is not serialized and saved to disk. This is particularly useful for components that are meant to be transient or are used for temporary purposes during runtime.
Example
// Example of using ComponentFlags.NotSaved
public class MyComponent : Component
{
public MyComponent()
{
// Set the component flags to NotSaved
this.Flags = ComponentFlags.NotSaved;
}
}