Creates or returns an existing setting override specified by path. Internally, it will create all the parent overrides if necessary. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim relativePath As String
Dim createOption As CreateOptions
Dim returnValue As AnswerFileSettingOverride
Dim answerFileComponentSettingOverrideCollection1 As AnswerFileComponentSettingOverrideCollection
returnValue = answerFileComponentSettingOverrideCollection1.Create(relativePath, createOption)

Syntax

Visual Basic
Public MustOverride Function Create( _
		ByVal relativePath As String, _
		ByVal createOption As CreateOptions _
) As AnswerFileSettingOverride
C#
public abstract AnswerFileSettingOverride Create(
		string relativePath, 
		CreateOptions createOption
);
C++
public:
virtual AnswerFileSettingOverride^ Create(
		String^ relativePath,
		CreateOptions createOption
) abstract;
J#
public abstract AnswerFileSettingOverride Create(
		System.String relativePath, 
		CreateOptions createOption
);
JScript
public abstract function Create(
		 relativePath : String, 
		 createOption : CreateOptions
) : AnswerFileSettingOverride;

Parameters

relativePath

Setting path

createOption

Enumeration element that determines whether to return the existing entity or throw exception when an entity already exists.

Return Value

The setting override specified by relativePath.

Remarks

System.ArgumentNullException is thrown if relativePath is null or empty.

System.InvalidOperationException is thrown if the override cannot be created (for example, if the maximum number of occurrences has been reached), or the setting override already exists and the value of CreateOptions is FailIfExists.


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