Class InfoObjectCacheDependencyBuilder
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Represents a builder for cache dependencies of info objects. CacheDependencyBuilder BaseInfo
public sealed class InfoObjectCacheDependencyBuilder
- Inheritance
-
objectInfoObjectCacheDependencyBuilder
- Extension Methods
Methods
All()
Adds a dependency on all objects of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public InfoObjectCacheDependencyBuilder All()
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.
Builder()
Returns the root CacheDependencyBuilder.
public CacheDependencyBuilder Builder()
Returns
ByCodeName(string)
Adds a dependency on objects with the given code name of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public InfoObjectCacheDependencyBuilder ByCodeName(string codeName)
Parameters
codeName
stringThe code name of the object.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.
ByGuid(Guid)
Adds a dependency on objects with the given GUID of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public InfoObjectCacheDependencyBuilder ByGuid(Guid guid)
Parameters
guid
GuidThe GUID of the object.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.
ById(int)
Adds a dependency on objects with the given ID of the type specified in ForInfoObjects<T>(CacheDependencyBuilder).
public InfoObjectCacheDependencyBuilder ById(int id)
Parameters
id
intThe ID of the object.
Returns
- InfoObjectCacheDependencyBuilder
The InfoObjectCacheDependencyBuilder instance for method chaining.