共用方式為


IDTSCustomProperty100.State Property

Definition

Gets or sets a value from a DTSPersistState that controls how the IDTSCustomProperty100 value is stored in the package XML.

public:
 property Microsoft::SqlServer::Dts::Pipeline::Wrapper::DTSPersistState State { Microsoft::SqlServer::Dts::Pipeline::Wrapper::DTSPersistState get(); void set(Microsoft::SqlServer::Dts::Pipeline::Wrapper::DTSPersistState value); };
[System.Runtime.InteropServices.DispId(102)]
public Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTSPersistState State { [System.Runtime.InteropServices.DispId(102)] get; [System.Runtime.InteropServices.DispId(102)] set; }
[<System.Runtime.InteropServices.DispId(102)>]
[<get: System.Runtime.InteropServices.DispId(102)>]
[<set: System.Runtime.InteropServices.DispId(102)>]
member this.State : Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTSPersistState with get, set
Public Property State As DTSPersistState

Property Value

A value from the DTSPersistState enumeration.

Attributes

Remarks

The default value is PS_DEFAULT and indicates the property value is stored directly in the XML element in the package XML. Properties that contain values that are not valid in an XML document should specify PS_PERSISTASCDATA, which wraps the XML element value in a CDATA section, ensuring the package is persisted correctly.

Applies to