IDTSCustomProperty100.EncryptionRequired 属性

定义

public:
 property bool EncryptionRequired { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(103)]
public bool EncryptionRequired { [System.Runtime.InteropServices.DispId(103)] get; [System.Runtime.InteropServices.DispId(103)] set; }
[<System.Runtime.InteropServices.DispId(103)>]
[<get: System.Runtime.InteropServices.DispId(103)>]
[<set: System.Runtime.InteropServices.DispId(103)>]
member this.EncryptionRequired : bool with get, set
Public Property EncryptionRequired As Boolean

属性值

如果对象必须加密,则为 IDTSCustomProperty100true;否则为 false。 默认值为 false

属性

注解

使用 EncryptionRequired 属性可保护对象值 IDTSCustomProperty100 中包含的敏感信息。 如果将此属性设置为 true,则在保存包时,自定义属性的 Value 属性将加密或完全删除,具体取决于 DTSProtectionLevel 包的属性。 DTSProtectionLevel当 为 DontSaveSensitive 时,EncryptionRequired 为 true 的自定义属性的值不会随包一起保留。 如果 DTSProtectionLevel 具有除 DontSaveSensitive 以外的任何值,则 EncryptionRequired 为 true 的自定义属性的值将随加密一起保存在持久化包中。

适用于