TempFileCollection Members
Collapse the table of content
Expand the table of content

TempFileCollection Members

TempFileCollection overview

Public Constructors

public constructorTempFileCollection Constructor Overloaded. Initializes a new instance of the TempFileCollection class.

Public Properties

public propertyBasePath Gets the full path to the base file name, without a file name extension, on the temporary directory path, that is used to generate temporary file names for the collection.
public propertyCount Gets the number of files in the collection.
public propertyKeepFiles Gets or sets a value indicating whether to keep the files, by default, when the Delete method is called or the collection is disposed.
public propertyTempDir Gets the temporary directory to store the temporary files in.

Public Methods

public methodAddExtension Overloaded. Adds a file name with the specified file name extension to the collection.
public methodAddFile Adds the specified file to the collection, using the specified value indicating whether to keep the file after the collection is disposed or when the Delete method is called.
public methodCopyTo Copies the members of the collection to the specified string, beginning at the specified index.
public methodDelete Deletes the temporary files within this collection that were not marked to be kept.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetEnumerator Gets an enumerator that can enumerate the members of the collection.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodDispose Releases the unmanaged resources used by the TempFileCollection and optionally releases the managed resources.
protected methodFinalize Overridden. Attempts to delete the temporary files before this object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

TempFileCollection Class | System.CodeDom.Compiler Namespace

Show:
© 2016 Microsoft