Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Dispose() |
C# | |
---|---|
public void Dispose() |
Library/Library.Test/TestTempFiles.cs
C# | Copy Code |
---|---|
TempDirectory dir = new TempDirectory();
Assert.IsTrue(dir.Exists);
dir.Dispose();
Assert.IsFalse(dir.Exists); |
VB.NET | Copy Code |
---|---|
Dim dir As New TempDirectory() Assert.IsTrue(dir.Exists) dir.Dispose() Assert.IsFalse(dir.Exists) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
TempDirectory ClassTempDirectory Members
Overload List