Compartir a través de


ConnectionManagerBase.ProtectionLevel Property

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

Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintaxis

'Declaración
Public Overridable Property ProtectionLevel As DTSProtectionLevel
public virtual DTSProtectionLevel ProtectionLevel { get; set; }
public:
virtual property DTSProtectionLevel ProtectionLevel {
    DTSProtectionLevel get ();
    void set (DTSProtectionLevel value);
}
/** @property */
public DTSProtectionLevel get_ProtectionLevel ()

/** @property */
public void set_ProtectionLevel (DTSProtectionLevel value)
public function get ProtectionLevel () : DTSProtectionLevel

public function set ProtectionLevel (value : DTSProtectionLevel)

Valor de propiedad

A DTSProtectionLevel enumeration.

Ejemplo

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

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.SqlServer.Dts.Runtime Namespace