Opens an existing answer file. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim path As String
Dim returnValue As AnswerFile
Dim cpi1 As Cpi
returnValue = cpi1.OpenAnswerFile(path)

Syntax

Visual Basic
Overloads Public Function OpenAnswerFile( _
		ByVal path As String _
) As AnswerFile
C#
public AnswerFile OpenAnswerFile(
		string path
);
C++
public:
AnswerFile^ OpenAnswerFile(
		String^ path
);
J#
public AnswerFile OpenAnswerFile(
		System.String path
);
JScript
public function OpenAnswerFile(
		 path : String
) : AnswerFile;

Parameters

path

Path to the answer file.

Return Value

An instance of AnswerFile that describes one or more Windows images inside of a .wim file.

Remarks

System.ArgumentNullException is thrown if path is null.

System.Xml.XmlException is thrown if there is an answer file format error.

System.Xml.Schema.XmlSchemaValidationException is thrown if the answer file schema validation fails.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also