Bagikan melalui


ScriptCache Class

Used to access the ElementSource for a given model element.

Inheritance Hierarchy

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

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public MustInherit Class ScriptCache _
    Implements IDisposable
public abstract class ScriptCache : IDisposable
public ref class ScriptCache abstract : IDisposable
[<AbstractClass>]
type ScriptCache =  
    class
        interface IDisposable
    end
public abstract class ScriptCache implements IDisposable

The ScriptCache type exposes the following members.

Constructors

  Name Description
Protected method ScriptCache Initializes a new instance of the ScriptCache class.

Top

Properties

  Name Description
Public property AllCacheIdentifiers Returns a collection of all the loaded cache identifiers.

Top

Methods

  Name Description
Protected method AddToCustomMetadataCache Sets the metadata that is associated with a cache entry.
Protected methodStatic member CheckGetScriptArguments Ensures that the given offsets are non-negative.
Public method ContainsCacheIdentifier Returns a value that indicates whether the item that is represented by the given cache identifier is in the script cache.
Public method Dispose() Releases resources.
Protected method Dispose(Boolean) When implemented in derived classes, releases resources.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateUniqueCacheIdentifier Returns a unique identifier that can be used with the cache.
Public method GetAllCustomSchemaDataFileNames Returns a collection of custom schema data file names.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMetadata Returns a read-only dictionary of metadata that is associated with the provided cache identifier.
Protected method GetObjectDataForCustomMetadataCache Adds custom metadata for all cache entries to the provided serialization information.
Public method GetScript(String) Returns the script for the given cache identifier.
Public method GetScript(String, Int32, Int32) Returns the part of the script that is defined by the start offset and length in the given file.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method IsCustomMetadataCacheUnchanged Returns a value that indicates whether the custom metadata cache is unchanged.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method RemoveFromCustomMetadataCache Removes the metadata from the specified cache entry.
Protected method SetCustomMetadataCache Sets the custom metadata cache for serialization.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetMetadata Returns a value that indicates whether retrieval of the specified metadata was successful.

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.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace

ElementSource