共用方式為


DataSource.Persistence Property

Definition

The storage location for this data source.

public:
 property System::String ^ Persistence { System::String ^ get(); void set(System::String ^ value); };
public string Persistence { get; set; }
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; }
member this.Persistence : string with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Persistence : string with get, set
Public Property Persistence As String

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