Click or drag to resize
Task Scheduler Managed Class Library

TaskPropertiesControl Class

Control which allows for the editing of all properties of a TaskDefinition.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.Windows.FormsControl
        System.Windows.FormsScrollableControl
          System.Windows.FormsContainerControl
            System.Windows.FormsUserControl
              Microsoft.Win32.TaskSchedulerTaskPropertiesControl

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.12.1
Syntax
C#
[DefaultPropertyAttribute("AvailableTabs")]
[DefaultEventAttribute("ComponentError")]
[ToolboxBitmapAttribute(typeof(TaskEditDialog), "TaskControl")]
public class TaskPropertiesControl : UserControl, 
	ITaskEditor, ITaskDefinitionEditor
Request Example View Source

The TaskPropertiesControl type exposes the following members.

Constructors
 NameDescription
Public methodTaskPropertiesControlInitializes a new instance of the TaskPropertiesControl class.
Top
Properties
 NameDescription
Public propertyAvailableActionsGets or sets the available actions.
Public propertyAvailableTabsGets or sets the available tabs.
Public propertyAvailableTriggersGets or sets the available triggers.
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyConvertResourceStringReferencesGets or sets a value indicating whether to convert references to resource strings in libraries to their value.
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEditableGets or sets a value indicating whether this TaskPropertiesControl is editable.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyHasErrorGets or sets a value indicating whether this instance has error.
Public propertyIsV2Gets or sets a value indicating whether this task definition is v2.
Public propertyMaxHistoryCountGets or sets the maximum history count. Use -1 for infinite or to retrieve all items.
Public propertyShowActionRunButtonGets or sets a value indicating whether a button is shown when editing an action that allows user to execute the current action.
Public propertyShowAddedPropertiesTabObsolete.
Gets or sets a value indicating whether to show the 'Additions' tab.
Public propertyShowConvertActionsToPowerShellCheck Gets or sets a value indicating whether a check box is shown on Actions tab that allows user to specify if PowerShell may be used to convert unsupported actions.
Public propertyShowErrorsGets or sets a value indicating whether errors are shown in the UI.
Public propertyShowRegistrationInfoTabObsolete.
Gets or sets a value indicating whether to show the 'Info' tab.
Public propertyShowRunTimesTabObsolete.
Gets or sets a value indicating whether to show the 'Run Times' tab.
Public propertyTask Gets the current Task. This is only the task used to initialize this control. The updates made to the control are not registered.
Public propertyTaskDefinitionGets the TaskDefinition in its edited state.
Public propertyTaskFolder Gets or sets the folder for the task. If control is initialized with a Task, this value will be set to the folder of the registered task.
Public propertyTaskName Gets or sets the name of the task. If control is initialized with a Task, this value will be set to the name of the registered task.
Public propertyTaskNameIsEditable If setup with a TaskDefinition and not a Task, and if Editable is true, then you can set this value to false to prevent the user from editing the TaskName.
Public propertyTaskServiceGets the TaskService assigned at initialization.
Top
Methods
 NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Clean up any resources being used.
(Overrides ContainerControlDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize(Task)Initializes the control for the editing of an existing Task.
Public methodInitialize(TaskService, TaskDefinition, String, String)Initializes the control for the editing of a new TaskDefinition.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnComponentErrorRaises the ComponentError event.
Public methodReinitializeControlsReinitializes all the controls based on current TaskDefinition values.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventComponentErrorOccurs when a component entry has an error.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Top
See Also