共用方式為


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 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
受保護的方法 RemoveFromCustomMetadataCache 從指定的快取項目移除中繼資料。 (繼承自 ScriptCache)。
受保護的方法 SetCustomMetadataCache 設定序列化的自訂中繼資料快取。 (繼承自 ScriptCache)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 TryGetMetadata 傳回值,這個值表示擷取指定的中繼資料是否成功。 (繼承自 ScriptCache)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Data.Schema.SchemaModel 命名空間