C# 클래스 System.IO.IsolatedStorage.TestHelper

파일 보기 프로젝트 열기: dotnet/corefx

공개 메소드들

메소드 설명
CreateTestFile ( this isf, string fileName, string content = null ) : void

Simple wrapper to create the given file (and close the handle)

GetIdentityRootDirectory ( this isf ) : string

The actual root of the store (housekeeping files are kept here in NetFX)

GetUserRootDirectory ( this isf ) : string

Where the user's files go

IsTimeCloseToNow ( DateTimeOffset time ) : bool

Returns true if the given time is within a minute of the current time

ReadAllText ( this stream ) : string
ReadAllText ( this isf, string fileName ) : string
WipeStores ( ) : void
WriteAllText ( this stream, string content ) : void
WriteAllText ( this isf, string fileName, string content ) : void

비공개 메소드들

메소드 설명
TestHelper ( ) : System.Collections.Generic

메소드 상세

CreateTestFile() 공개 정적인 메소드

Simple wrapper to create the given file (and close the handle)
public static CreateTestFile ( this isf, string fileName, string content = null ) : void
isf this
fileName string
content string
리턴 void

GetIdentityRootDirectory() 공개 정적인 메소드

The actual root of the store (housekeeping files are kept here in NetFX)
public static GetIdentityRootDirectory ( this isf ) : string
isf this
리턴 string

GetUserRootDirectory() 공개 정적인 메소드

Where the user's files go
public static GetUserRootDirectory ( this isf ) : string
isf this
리턴 string

IsTimeCloseToNow() 공개 정적인 메소드

Returns true if the given time is within a minute of the current time
public static IsTimeCloseToNow ( DateTimeOffset time ) : bool
time DateTimeOffset
리턴 bool

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( this stream ) : string
stream this
리턴 string

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( this isf, string fileName ) : string
isf this
fileName string
리턴 string

WipeStores() 공개 정적인 메소드

public static WipeStores ( ) : void
리턴 void

WriteAllText() 공개 정적인 메소드

public static WriteAllText ( this stream, string content ) : void
stream this
content string
리턴 void

WriteAllText() 공개 정적인 메소드

public static WriteAllText ( this isf, string fileName, string content ) : void
isf this
fileName string
content string
리턴 void