Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
---|
Dim path As String Dim imageInfo As OfflineImageInfo Dim returnValue As AnswerFile Dim cpi1 As Cpi returnValue = cpi1.OpenAnswerFile(path, imageInfo) |
Syntax
Visual Basic |
---|
Overloads Public Function OpenAnswerFile( _ ByVal path As String, _ ByVal imageInfo As OfflineImageInfo _ ) As AnswerFile |
C# |
---|
public AnswerFile OpenAnswerFile( string path, OfflineImageInfo imageInfo ); |
C++ |
---|
public: AnswerFile^ OpenAnswerFile( String^ path, OfflineImageInfo^ imageInfo ); |
J# |
---|
public AnswerFile OpenAnswerFile( System.String path, OfflineImageInfo imageInfo ); |
JScript |
---|
public function OpenAnswerFile( path : String, imageInfo : OfflineImageInfo ) : AnswerFile; |
Parameters
- path
-
Path to the answer file.
- imageInfo
-
Information on the image to use for the answer file. Null or empty means 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.