Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TempFileCollection Methods

The methods of the TempFileCollection class are listed here. For a complete list of TempFileCollection class members, see the TempFileCollection Members topic.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.