ObjectCacheElement Class

 

Applies To: Dynamics CRM 2015

Represents an object cache element. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Configuration
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  System.Configuration.ConfigurationElement
    Microsoft.Xrm.Client.Configuration.InitializableConfigurationElement<TDependency>
      Microsoft.Xrm.Client.Configuration.ObjectCacheElement

Syntax

public sealed class ObjectCacheElement : InitializableConfigurationElement<ObjectCache>, 
    ICacheItemPolicyFactory
public ref class ObjectCacheElement sealed : InitializableConfigurationElement<ObjectCache^>, 
    ICacheItemPolicyFactory
[<Sealed>]
type ObjectCacheElement = 
    class
        inherit InitializableConfigurationElement<ObjectCache>
        interface ICacheItemPolicyFactory
    end
Public NotInheritable Class ObjectCacheElement
    Inherits InitializableConfigurationElement(Of ObjectCache)
    Implements ICacheItemPolicyFactory

Constructors

Name Description
System_CAPS_pubmethod ObjectCacheElement()

Initializes a new instance of the ObjectCacheElement class.

Properties

Name Description
System_CAPS_pubproperty AbsoluteExpiration

Gets or sets the cache policy absolute expiration date.

System_CAPS_pubproperty CurrentConfiguration

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty DependencyType

The dependency type.(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_pubproperty Duration

Gets or sets the cache policy cache duration.

System_CAPS_pubproperty ElementInformation

(Inherited from ConfigurationElement.)

System_CAPS_protproperty ElementProperty

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty InstanceMode

Gets or sets the instance mode.

System_CAPS_protproperty Item[ConfigurationProperty]

(Inherited from ConfigurationElement.)

System_CAPS_protproperty Item[String]

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockAllAttributesExcept

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockAllElementsExcept

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockAttributes

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockElements

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty LockItem

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty Name

Gets or sets the element name.(Overrides InitializableConfigurationElement<TDependency>.Name.)

System_CAPS_pubproperty OutputCacheProfileName

Gets or sets the name of the OutputCacheProfileName from which the cache profile duration is obtained.

System_CAPS_pubproperty Parameters

The attributes of the configuration element.(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_pubproperty Priority

Gets or sets the cache policy priority.

System_CAPS_protproperty Properties

(Inherited from ConfigurationElement.)

System_CAPS_pubproperty SlidingExpiration

Gets or sets the ache policy sliding expiration.

System_CAPS_pubproperty Type

Gets or sets the dependency type name.(Overrides InitializableConfigurationElement<TDependency>.Type.)

Methods

Name Description
System_CAPS_pubmethod AddConfig(String, String)

Adds a setting.(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_pubmethod CreateCacheItemPolicy()

System_CAPS_pubmethod CreateObjectCache(String)

Creates an ObjectCache object.

System_CAPS_protmethod DeserializeElement(XmlReader, Boolean)

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod Equals(Object)

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod GetHashCode()

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Init()

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod Initialize(TDependency)

(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_protmethod InitializeDefault()

(Inherited from ConfigurationElement.)

System_CAPS_protmethod IsModified()

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod IsReadOnly()

(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_protmethod Reset(ConfigurationElement)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod ResetModified()

(Inherited from ConfigurationElement.)

System_CAPS_protmethod SerializeElement(XmlWriter, Boolean)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod SerializeToXmlElement(XmlWriter, String)

(Inherited from ConfigurationElement.)

System_CAPS_protmethod SetReadOnly()

(Inherited from ConfigurationElement.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryInitialize(Object)

Initializes the dependency object.(Inherited from InitializableConfigurationElement<TDependency>.)

System_CAPS_protmethod Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

(Inherited from ConfigurationElement.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static DefaultObjectCacheName

Gets or sets the default element name.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICacheItemPolicyFactory.Create()

Extension Methods

Name Description
System_CAPS_pubmethod SerializeByJson(IEnumerable<Type>)

Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client.Configuration Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright