ConnectionManagerBase.ProtectionLevel Propriété

Définition

Obtient ou définit une valeur, en utilisant l'énumération DTSProtectionLevel, qui met en vigueur la manière dont la connexion contrôle les informations sensibles.

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

Valeur de propriété

Énumération DTSProtectionLevel.

Exemples

L’exemple de code suivant donne un exemple de code qui peut se trouver dans une propriété substituée ProtectionLevel pour un gestionnaire de connexions personnalisé.

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  

S’applique à