CoverageInfo.CreateFromFile Method (String, MissingFileCallback)

Creates a new CoverageInfo object by using the provided path for an XML file that contains serialized coverage information and a delegate for the method if the file cannot be found. This class and its members are reserved for internal use and are not intended to be used in your code.

Namespace:  Microsoft.VisualStudio.Coverage.Analysis
Assembly:  Microsoft.VisualStudio.Coverage.Analysis (in Microsoft.VisualStudio.Coverage.Analysis.dll)

Syntax

'Declaration
Public Shared Function CreateFromFile ( _
    path As String, _
    callback As MissingFileCallback _
) As CoverageInfo
public static CoverageInfo CreateFromFile(
    string path,
    MissingFileCallback callback
)
public:
static CoverageInfo^ CreateFromFile(
    String^ path, 
    MissingFileCallback^ callback
)
static member CreateFromFile : 
        path:string * 
        callback:MissingFileCallback -> CoverageInfo
public static function CreateFromFile(
    path : String, 
    callback : MissingFileCallback
) : CoverageInfo

Parameters

  • path
    Type: String

    The path and file name of the XML file.

Return Value

Type: Microsoft.VisualStudio.Coverage.Analysis.CoverageInfo
A CoverageInfo object.

.NET Framework Security

See Also

Reference

CoverageInfo Class

CreateFromFile Overload

Microsoft.VisualStudio.Coverage.Analysis Namespace

MissingFileCallback