CSharpTest.Net
Dispose() Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > TempDirectory Class > Dispose Method : Dispose() Method

Glossary Item Box

Disposes of the temporary directory

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Dispose() 
C# 
public void Dispose()

Example

Library/Library.Test/TestTempFiles.cs

C#Copy Code
TempDirectory dir = new TempDirectory();
Assert.IsTrue(dir.Exists);
dir.Dispose();
Assert.IsFalse(dir.Exists);
VB.NETCopy Code
Dim dir As New TempDirectory()
Assert.IsTrue(dir.Exists)
dir.Dispose()
Assert.IsFalse(dir.Exists)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys