共用方式為


ConnectionManagerBase.ProtectionLevel 屬性

Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Overridable Property ProtectionLevel As DTSProtectionLevel 
    Get 
    Set
'用途
Dim instance As ConnectionManagerBase 
Dim value As DTSProtectionLevel 

value = instance.ProtectionLevel

instance.ProtectionLevel = value
public virtual DTSProtectionLevel ProtectionLevel { get; set; }
public:
virtual property DTSProtectionLevel ProtectionLevel {
    DTSProtectionLevel get ();
    void set (DTSProtectionLevel value);
}
abstract ProtectionLevel : DTSProtectionLevel with get, set 
override ProtectionLevel : DTSProtectionLevel with get, set
function get ProtectionLevel () : DTSProtectionLevel 
function set ProtectionLevel (value : DTSProtectionLevel)

屬性值

型別:Microsoft.SqlServer.Dts.Runtime.DTSProtectionLevel
A DTSProtectionLevel enumeration.

範例

The following code example gives an sample of what code may be in an overridden ProtectionLevel property for a custom connection manager.

public virtual DTSProtectionLevel ProtectionLevel
    {
        get{return DTSProtectionLevel.DontSaveSensitive;}
        set{
               // Vadidate that protection level is within company guidelines.
        }
    }
Public Overridable Property ProtectionLevel() As DTSProtectionLevel
    Get 
        Return DTSProtectionLevel.DontSaveSensitive
    End Get
    Set (ByVal Value As DTSProtectionLevel) 
               ' Vadidate that protection level is within company guidelines.
    End Set
End Property

請參閱

參考

ConnectionManagerBase 類別

Microsoft.SqlServer.Dts.Runtime 命名空間