PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Dependencies Namespace / Object­Dependency Class / Object­Dependency Methods / Object­Dependency.​Get­Cache­Key Method

ObjectDependency.GetCacheKey Method

Gets a string that uniquely represents the current object.

Namespace:  PostSharp.Patterns.Caching.Dependencies
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public string GetCacheKey()

Return Value

Type: String
A string that uniquely represents the current object.

Implements

ICacheDependency.GetCacheKey()
Remarks

The returned key should be globally unique, not just unique within the class implementing the method.

See Also