Retrieves or sets whether (and how) reboot will be performed after the command completed. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim runOnceCommand1 As RunOnceCommand

Dim returnValue As Nullable(Of RunOnceCommandRebootRequest)
returnValue = runOnceCommand1.RebootRequest

Dim sampleValue As Nullable(Of RunOnceCommandRebootRequest)
runOnceCommand1.RebootRequest = sampleValue

Syntax

Visual Basic
Public Property RebootRequest() As Nullable(Of RunOnceCommandRebootRequest)
C#
public Nullable<RunOnceCommandRebootRequest> RebootRequest {get; set;}
C++
public:
property Nullable<RunOnceCommandRebootRequest>^ RebootRequest {
		Nullable<RunOnceCommandRebootRequest>^ get();
		void set(Nullable<RunOnceCommandRebootRequest>^ value);
}
J#
public Nullable<RunOnceCommandRebootRequest> get_RebootRequest();
public void set_RebootRequest(Nullable<RunOnceCommandRebootRequest>);
JScript
JScript does not support Generics.

Property Value

If no reboot request has been set, then this property will return null. Otherwise, it will return one of the values defined in RunOnceCommandRebootRequest.

Remarks

System.ArgumentException is thrown if the specified value is not compatible with the configuration pass that the run once command is applied to. See RunOnceCommandRebootRequest for details.

System.InvalidOperationException is thrown if the setting does not exist. See RunOnceCommandRebootRequest for details.


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