CSharpTest.Net
Info Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > TempFile Class : Info Property

Glossary Item Box

Returns the FileInfo object for this temp file.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Info As FileInfo
C# 
public FileInfo Info {get;}

Example

Library/Library.Test/TestTempFiles.cs

C#Copy Code
TempFile f = new TempFile();
f.Length = 5;
Assert.AreEqual(f.Length, f.Info.Length);
f.Dispose();

Assert.AreEqual(0, f.Length);
VB.NETCopy Code
Dim f As New TempFile()
f.Length = 5
Assert.AreEqual(f.Length, f.Info.Length)
f.Dispose()

Assert.AreEqual(0, f.Length)

Requirements

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

See Also

Generated with Document! X 2011 by Innovasys