DataSource.Persistence Property

Definition

The storage location for this data source.

C#
public string Persistence { get; set; }
C#
public string Persistence { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }

Property Value

The storage location for this data source.

Attributes

Remarks

This field is mandatory unless PersistenceStyle is set. In that case, the parent DataSource will be used with the specified style. Example values are ProjectFile and UserFile. ProjectFile causes the property value to be written to and read from the project manifest file or the property sheet (depending on which node in the solution explorer/property manager window is used to spawn the property pages UI). UserFile causes the property value to be written to and read from the .user file.

Applies to

Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1