Właściwość ConnectionManagerBase.ProtectionLevel
Pobiera lub ustawia wartość za pomocą DTSProtectionLevel wyliczenia, która wymusza połączenie kontroluje sposób poufnych informacji.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public Overridable Property ProtectionLevel As DTSProtectionLevel
Get
Set
'Użycie
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)
Wartość właściwości
Typ: Microsoft.SqlServer.Dts.Runtime.DTSProtectionLevel
A DTSProtectionLevel wyliczania.
Przykłady
Poniższy przykład kodu daje przykładowy kod, który może być zastąpiona ProtectionLevel właściwość dla menedżer połączeń niestandardowych.
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