CacheFactory Create Method (String, DistributedSystem, String, CacheAttributes)Pivotal GemFire .NET Client Documentation
Creates a new cache using the specified system using parameters from the given XML file and with the given CacheAttributes.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.1.0.0
Syntax

public static Cache Create(
	string name,
	DistributedSystem system,
	string cacheXml,
	CacheAttributes attributes
)

Parameters

name
Type: System String
the name to associate with the new cache
system
Type: GemStone.GemFire.Cache.Generic DistributedSystem
a DistributedSystem obtained by calling Connect(String)
cacheXml
Type: System String
name of the cache configuration XML file
attributes
Type: GemStone.GemFire.Cache.Generic CacheAttributes
optional CacheAttributes for this cache; these override the ones provided in cacheXml.

Return Value

a Cache that uses the specified DistributedSystem for distribution.
Exceptions

See Also