Delen via


ExecutableDescription.SingleInstance Property

Gets or sets a value that indicates whether the Configuration Manager console allows a single instance of the executable.

Namespace: Microsoft.ConfigurationManagement.AdminConsole.Schema
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim instance As ExecutableDescription
Dim value As Boolean

value = instance.SingleInstance

instance.SingleInstance = value

Syntax

'Declaration
<XmlAttributeAttribute("SingleInstance")> _
<DefaultValueAttribute(False)> _
Public Property SingleInstance As Boolean
[XmlAttributeAttribute("SingleInstance")] 
[DefaultValueAttribute(false)] 
public bool SingleInstance { get; set; }
[XmlAttributeAttribute(L"SingleInstance")] 
[DefaultValueAttribute(false)] 
public:
property bool SingleInstance {
    bool get ();
    void set (bool value);
}
/** @property */
/** @attribute DebuggerStepThroughAttribute() */ 
public boolean get_SingleInstance ()

/** @property */
/** @attribute DebuggerStepThroughAttribute() */ 
public void set_SingleInstance (boolean value)
DebuggerStepThroughAttribute 
public function get SingleInstance () : boolean

DebuggerStepThroughAttribute 
public function set SingleInstance (value : boolean)

Property Value

true if the console allows a single instance of the executable and disables the menu item until the run operation has completed; false if the console allows multiple instances of the executable.

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 Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

ExecutableDescription Class
ExecutableDescription Members
Microsoft.ConfigurationManagement.AdminConsole.Schema Namespace