ConnectionManagerBase.ProtectionLevel Propiedad

Definición

Obtiene o establece un valor, utilizando la enumeración DTSProtectionLevel, que impone la manera en que la conexión controla la información sensible.

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

Valor de propiedad

Enumeración DTSProtectionLevel.

Ejemplos

En el ejemplo de código siguiente se proporciona un ejemplo de qué código puede estar en una propiedad invalidada ProtectionLevel para un administrador de conexiones personalizado.

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  

Se aplica a