InMemoryScriptCache 类

表示内存中存储其脚本的脚本缓存。

继承层次结构

System.Object
  Microsoft.Data.Schema.SchemaModel.ScriptCache
    Microsoft.Data.Schema.SchemaModel.InMemoryScriptCache

命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
<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

InMemoryScriptCache 类型公开以下成员。

构造函数

  名称 说明
公共方法 InMemoryScriptCache 初始化 InMemoryScriptCache 类的新实例。

页首

属性

  名称 说明
公共属性 AllCacheIdentifiers (重写 ScriptCache.AllCacheIdentifiers。)

页首

方法

  名称 说明
公共方法 AddOrUpdateScript(String, String) 添加或更新脚本。
公共方法 AddOrUpdateScript(String, String, IDictionary<String, String>)
受保护的方法 AddToCustomMetadataCache 设置与缓存项关联的元数据。 (继承自 ScriptCache。)
公共方法 ContainsCacheIdentifier 返回一个值,该值指示给定缓存标识符是否在脚本缓存中。 (重写 ScriptCache.ContainsCacheIdentifier(String)。)
公共方法 DeleteScript 从缓存中删除脚本。
公共方法 Dispose() 释放资源。 (继承自 ScriptCache。)
受保护的方法 Dispose(Boolean) 在派生类中实现时,释放资源。 (继承自 ScriptCache。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GenerateUniqueCacheIdentifier (重写 ScriptCache.GenerateUniqueCacheIdentifier()。)
公共方法 GetAllCustomSchemaDataFileNames (重写 ScriptCache.GetAllCustomSchemaDataFileNames()。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetMetadata 返回与所提供的缓存标识符关联的元数据的只读字典。 (继承自 ScriptCache。)
公共方法 GetObjectData 用序列化 InMemoryScriptCache 对象所需的数据填充 SerializationInfo 对象。
受保护的方法 GetObjectDataForCustomMetadataCache 向所提供的序列化信息添加所有缓存项的自定义元数据。 (继承自 ScriptCache。)
公共方法 GetScript(String) 返回给定缓存标识符所对应的脚本。 (重写 ScriptCache.GetScript(String)。)
公共方法 GetScript(String, Int32, Int32) 返回给定缓存标识符所对应的脚本。 (重写 ScriptCache.GetScript(String, Int32, Int32)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 IsCustomMetadataCacheUnchanged 返回一个值,该值指示自定义元数据缓存是否未更改。 (继承自 ScriptCache。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 RemoveFromCustomMetadataCache 从指定的缓存项中移除元数据。 (继承自 ScriptCache。)
受保护的方法 SetCustomMetadataCache 设置用于序列化的自定义元数据缓存。 (继承自 ScriptCache。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TryGetMetadata 返回一个值,该值指示检索指定的元数据是否成功。 (继承自 ScriptCache。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.SchemaModel 命名空间