Validates the settings in the current answer file. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim returnValue As CpiResult
Dim answerFile1 As AnswerFile
returnValue = answerFile1.Validate()

Syntax

Visual Basic
Public Function Validate() As CpiResult
C#
public CpiResult Validate();
C++
public:
CpiResult^ Validate();
J#
public CpiResult Validate();
JScript
public function Validate() : CpiResult;

Return Value

An instance of CpiResult indicating pass or failure.

Remarks

Answer file settings are validated by type only. For example, you can specify the default Internet Explorer homepage as a string type, "http://www.fabrikam.com". However, this method does not validate that the specified URL is correct.


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