DataCacheFactoryConfiguration.CreateNamedConfiguration Method (String, DataCacheFactoryConfiguration, Boolean)
Create a new cache client configuration.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public static bool CreateNamedConfiguration(
string clientName,
DataCacheFactoryConfiguration config,
bool useConnectionPool
)
public:
static bool CreateNamedConfiguration(
String^ clientName,
DataCacheFactoryConfiguration^ config,
bool useConnectionPool
)
static member CreateNamedConfiguration :
clientName:string *
config:DataCacheFactoryConfiguration *
useConnectionPool:bool -> bool
Public Shared Function CreateNamedConfiguration (
clientName As String,
config As DataCacheFactoryConfiguration,
useConnectionPool As Boolean
) As Boolean
Parameters
clientName
Type: System.StringThe name of the new cache client configuration.
config
Type: Microsoft.ApplicationServer.Caching.DataCacheFactoryConfigurationA DataCacheFactoryConfiguration object that contains the settings for the new client configuration.
useConnectionPool
Type: System.BooleanA value of true enables connection pooling.
Return Value
Type: System.Boolean
Returns Boolean.
Remarks
This method creates a new cache client configuration in memory with the specified name. To use this new configuration, you must create a new DataCacheFactoryConfiguration object. Specify the name of the new cache client configuration in the constructor.
See Also
DataCacheFactoryConfiguration Class
Microsoft.ApplicationServer.Caching Namespace
Return to top