DataCacheSecurity Constructor (DataCacheSecurityMode, DataCacheProtectionLevel)
Initializes a new instance of the DataCacheSecurity class, allows you to specify the DataCacheSecurityMode and DataCacheProtectionLevel for the instance.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)
Usage
'Usage
Dim securityMode As DataCacheSecurityMode
Dim protectionLevel As DataCacheProtectionLevel
Dim instance As New DataCacheSecurity(securityMode, protectionLevel)
Syntax
'Declaration
Public Sub New ( _
securityMode As DataCacheSecurityMode, _
protectionLevel As DataCacheProtectionLevel _
)
public DataCacheSecurity (
DataCacheSecurityMode securityMode,
DataCacheProtectionLevel protectionLevel
)
public:
DataCacheSecurity (
DataCacheSecurityMode securityMode,
DataCacheProtectionLevel protectionLevel
)
public DataCacheSecurity (
DataCacheSecurityMode securityMode,
DataCacheProtectionLevel protectionLevel
)
public function DataCacheSecurity (
securityMode : DataCacheSecurityMode,
protectionLevel : DataCacheProtectionLevel
)
Parameters
- securityMode
Enumeration indicating if channel security is disabled by setting to None, integer value equals 1; or if channel security is enabled by setting to Transport, integer value equals 2.
protectionLevel
Enumeration indicating whether data sent between client and server is signed and/or encrypted. Possible return values are no signing or encryption; integer value equals 1, signing only; integer value equals 2 and both encryption and signing; integer value equals 3.This property is only valid when the SecurityMode property is set to Transport; integer value equals 2.
Platforms
Development Platforms
Visual Studio 2010 and later, .NET Framework 4
Target Platforms
Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
See Also
Reference
DataCacheSecurity Class
DataCacheSecurity Members
Microsoft.ApplicationServer.Caching Namespace
ff425062(v=azure.10).md 2011-08-26