Share via


IDTSCustomProperty100.EncryptionRequired 属性

定义

获取或设置一个值,该值指示是否必须加密 IDTSCustomProperty100 对象。

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

属性值

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

属性

注解

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

适用于