Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim path As String Dim imagePath As String Dim returnValue As AnswerFile Dim cpi1 As Cpi returnValue = cpi1.OpenAnswerFile(path, imagePath) |
Syntax
Visual Basic |
---|
Overloads Public Function OpenAnswerFile( _ ByVal path As String, _ ByVal imagePath As String _ ) As AnswerFile |
C# |
---|
public AnswerFile OpenAnswerFile( string path, string imagePath ); |
C++ |
---|
public: AnswerFile^ OpenAnswerFile( String^ path, String^ imagePath ); |
J# |
---|
public AnswerFile OpenAnswerFile( System.String path, System.String imagePath ); |
JScript |
---|
public function OpenAnswerFile( path : String, imagePath : String ) : AnswerFile; |
Parameters
- path
-
Path to the answer file.
- imagePath
-
Path to the image to use for the answer file. If null or empty, it specifies no image.
Return Value
An instance of AnswerFile.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.