C# Class System.IO.IsolatedStorage.TestHelper

Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
TestHelper ( ) : System.Collections.Generic

Method Details

CreateTestFile() public static méthode

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
Résultat void

GetIdentityRootDirectory() public static méthode

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

GetUserRootDirectory() public static méthode

Where the user's files go
public static GetUserRootDirectory ( this isf ) : string
isf this
Résultat string

IsTimeCloseToNow() public static méthode

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

ReadAllText() public static méthode

public static ReadAllText ( this stream ) : string
stream this
Résultat string

ReadAllText() public static méthode

public static ReadAllText ( this isf, string fileName ) : string
isf this
fileName string
Résultat string

WipeStores() public static méthode

public static WipeStores ( ) : void
Résultat void

WriteAllText() public static méthode

public static WriteAllText ( this stream, string content ) : void
stream this
content string
Résultat void

WriteAllText() public static méthode

public static WriteAllText ( this isf, string fileName, string content ) : void
isf this
fileName string
content string
Résultat void