FileScriptCache Class
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Provides file operations for script files. This class cannot be inherited.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.SchemaModel.ScriptCache
Microsoft.Data.Schema.SchemaModel.FileScriptCache
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class FileScriptCache _
Inherits ScriptCache _
Implements ISerializable
[SerializableAttribute]
public sealed class FileScriptCache : ScriptCache,
ISerializable
[SerializableAttribute]
public ref class FileScriptCache sealed : public ScriptCache,
ISerializable
[<Sealed>]
[<SerializableAttribute>]
type FileScriptCache =
class
inherit ScriptCache
interface ISerializable
end
public final class FileScriptCache extends ScriptCache implements ISerializable
The FileScriptCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FileScriptCache | Initializes a new instance of the FileScriptCache class. |
Top
Properties
Name | Description | |
---|---|---|
AllCacheIdentifiers | Gets a collection of current cache identifiers. (Overrides ScriptCache.AllCacheIdentifiers.) | |
ModelBuilder | Gets the model builder. |
Top
Methods
Name | Description | |
---|---|---|
AddOrUpdate | Adds or updates cached custom schema data. | |
AddOrUpdateFile | Adds or updates a file to the data model. | |
AddToCustomMetadataCache | Sets the metadata that is associated with a cache entry. (Inherited from ScriptCache.) | |
BatchLoadOrUpdate | Returns a list of tasks that represent the files that will be loaded or updated. | |
ContainsCacheIdentifier | Determines whether the provided string contains a cache identifier. (Overrides ScriptCache.ContainsCacheIdentifier(String).) | |
ConvertCacheIdentifierToFileName | Converts the provided cache identifier to a file name. | |
DeleteFile | Deletes the file that is represented by the provided file name. | |
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 | Returns a unique cache identifier. (Overrides ScriptCache.GenerateUniqueCacheIdentifier().) | |
GetAllCustomSchemaDataFileNames | Returns a collection of file names that represent the custom data files in the cache. (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 | Instantiates the object from XML by using the provided data and context. | |
GetObjectDataForCustomMetadataCache | Adds custom metadata for all cache entries to the provided serialization information. (Inherited from ScriptCache.) | |
GetScript(String) | Retrieves a script from a file by using the specified cache identifier. (Overrides ScriptCache.GetScript(String).) | |
GetScript(String, Int32, Int32) | Retrieves a specified script from a file by using the given cache identifier, file offset, and length. (Overrides ScriptCache.GetScript(String, Int32, Int32).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | Initializes the FileScriptCache by using the provided ModelBuilder. | |
IsCustomMetadataCacheUnchanged | Returns a value that indicates whether the custom metadata cache is unchanged. (Inherited from ScriptCache.) | |
IsScriptUnchanged | Returns a value that indicates whether the script file is unchanged. | |
IsTaskItemUnchanged | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OptimizeForInsert | Tells the associated ModelBuilder to optimize the script for insert instead of lookup. | |
OptimizeForQuery | Tells the associated ModelBuilder to optimize the script for lookup instead of insert. | |
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.