ConnectionManagerBase.ProtectionLevel Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information.
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
Property Value
A DTSProtectionLevel enumeration.
Examples
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