Share via


ConnectionManagerBase.ProtectionLevel Eigenschaft

Definition

Ruft unter Verwendung der DTSProtectionLevel-Enumeration einen Wert ab, durch den erzwungen wird, wie vertrauliche Informationen von der Verbindung überwacht werden, oder legt ihn fest.

public:
 virtual property Microsoft::SqlServer::Dts::Runtime::DTSProtectionLevel ProtectionLevel { Microsoft::SqlServer::Dts::Runtime::DTSProtectionLevel get(); void set(Microsoft::SqlServer::Dts::Runtime::DTSProtectionLevel value); };
public virtual Microsoft.SqlServer.Dts.Runtime.DTSProtectionLevel ProtectionLevel { get; set; }
member this.ProtectionLevel : Microsoft.SqlServer.Dts.Runtime.DTSProtectionLevel with get, set
Public Overridable Property ProtectionLevel As DTSProtectionLevel

Eigenschaftswert

Eine DTSProtectionLevel-Enumeration.

Beispiele

Im folgenden Codebeispiel wird gezeigt, welche Code möglicherweise in einer überschriebenen ProtectionLevel Eigenschaft für einen benutzerdefinierten Verbindungs-Manager enthalten ist.

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  

Gilt für: