InMemoryScriptCache Class
Represents a script cache that stores its scripts in memory.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.SchemaModel.ScriptCache
Microsoft.Data.Schema.SchemaModel.InMemoryScriptCache
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class InMemoryScriptCache _
Inherits ScriptCache _
Implements ISerializable
[SerializableAttribute]
public sealed class InMemoryScriptCache : ScriptCache,
ISerializable
[SerializableAttribute]
public ref class InMemoryScriptCache sealed : public ScriptCache,
ISerializable
[<Sealed>]
[<SerializableAttribute>]
type InMemoryScriptCache =
class
inherit ScriptCache
interface ISerializable
end
public final class InMemoryScriptCache extends ScriptCache implements ISerializable
The InMemoryScriptCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
InMemoryScriptCache | Initializes a new instance of the InMemoryScriptCache class. |
Top
Properties
Name | Description | |
---|---|---|
AllCacheIdentifiers | (Overrides ScriptCache.AllCacheIdentifiers.) |
Top
Methods
Name | Description | |
---|---|---|
AddOrUpdateScript(String, String) | Adds or updates a script. | |
AddOrUpdateScript(String, String, IDictionary<String, String>) | ||
AddToCustomMetadataCache | Sets the metadata that is associated with a cache entry. (Inherited from ScriptCache.) | |
ContainsCacheIdentifier | Returns a value that indicates whether the given cache identifier is in the script cache. (Overrides ScriptCache.ContainsCacheIdentifier(String).) | |
DeleteScript | Deletes a script from the cache. | |
Dispose() | Releases resources. (Inherited from ScriptCache.) | |
Dispose(Boolean) | When implemented in derived classes, releases resources. (Inherited from ScriptCache.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateUniqueCacheIdentifier | (Overrides ScriptCache.GenerateUniqueCacheIdentifier().) | |
GetAllCustomSchemaDataFileNames | (Overrides ScriptCache.GetAllCustomSchemaDataFileNames().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMetadata | Returns a read-only dictionary of metadata that is associated with the provided cache identifier. (Inherited from ScriptCache.) | |
GetObjectData | Populates a SerializationInfo object with the data required to serialize the InMemoryScriptCache object. | |
GetObjectDataForCustomMetadataCache | Adds custom metadata for all cache entries to the provided serialization information. (Inherited from ScriptCache.) | |
GetScript(String) | Returns the script for the given cache identifier. (Overrides ScriptCache.GetScript(String).) | |
GetScript(String, Int32, Int32) | Returns the script for the given cache identifier. (Overrides ScriptCache.GetScript(String, Int32, Int32).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsCustomMetadataCacheUnchanged | Returns a value that indicates whether the custom metadata cache is unchanged. (Inherited from ScriptCache.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveFromCustomMetadataCache | Removes the metadata from the specified cache entry. (Inherited from ScriptCache.) | |
SetCustomMetadataCache | Sets the custom metadata cache for serialization. (Inherited from ScriptCache.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetMetadata | Returns a value that indicates whether retrieval of the specified metadata was successful. (Inherited from ScriptCache.) |
Top
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.