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 | |
---|---|---|
ScriptCache | Initializes a new instance of the ScriptCache class. |
Top
Properties
Name | Description | |
---|---|---|
AllCacheIdentifiers | Returns a collection of all the loaded cache identifiers. |
Top
Methods
Name | Description | |
---|---|---|
AddToCustomMetadataCache | Sets the metadata that is associated with a cache entry. | |
CheckGetScriptArguments | Ensures that the given offsets are non-negative. | |
ContainsCacheIdentifier | Returns a value that indicates whether the item that is represented by the given cache identifier is in the script cache. | |
Dispose() | Releases resources. | |
Dispose(Boolean) | When implemented in derived classes, releases resources. | |
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 | Returns a unique identifier that can be used with the cache. | |
GetAllCustomSchemaDataFileNames | Returns a collection of custom schema data file names. | |
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. | |
GetObjectDataForCustomMetadataCache | Adds custom metadata for all cache entries to the provided serialization information. | |
GetScript(String) | Returns the script for the given cache identifier. | |
GetScript(String, Int32, Int32) | Returns the part of the script that is defined by the start offset and length in the given file. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsCustomMetadataCacheUnchanged | Returns a value that indicates whether the custom metadata cache is unchanged. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveFromCustomMetadataCache | Removes the metadata from the specified cache entry. | |
SetCustomMetadataCache | Sets the custom metadata cache for serialization. | |
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. |
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