Creates a new RunOnceCommand and adds it to the collection. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim order As Integer
Dim createOption As CreateOptions
Dim returnValue As RunOnceCommand
Dim runOnceCommandCollection1 As RunOnceCommandCollection
returnValue = runOnceCommandCollection1.Create(order, createOption)

Syntax

Visual Basic
Public Function Create( _
		ByVal order As Integer, _
		ByVal createOption As CreateOptions _
) As RunOnceCommand
C#
public RunOnceCommand Create(
		int order, 
		CreateOptions createOption
);
C++
public:
RunOnceCommand^ Create(
		int order,
		CreateOptions createOption
);
J#
public RunOnceCommand Create(
		int order, 
		CreateOptions createOption
);
JScript
public function Create(
		 order : int, 
		 createOption : CreateOptions
) : RunOnceCommand;

Parameters

order

Command to be executed.

createOption

Enumeration element that determines whether to return the existing collection or throw an exception if one already exists.

Return Value

The RunOnceCommand that will be added to the RunOnceCommandCollection.

Remarks

Throws Troubleshooting System.InvalidOperationException Exceptions if there is already a RunOnceCommand for the specified parameter.


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