ActivityAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This attribute declares that a class defines an Orchestrator Activity.
public ref class ActivityAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class ActivityAttribute : Attribute
type ActivityAttribute = class
inherit Attribute
Public NotInheritable Class ActivityAttribute
Inherits Attribute
- Inheritance
-
ActivityAttribute
- Attributes
using Microsoft.SystemCenter.Orchestrator.Integration;
using System.Math;
[Activity("Power")]
public class CalculatePower
{
private Double number;
private Double raisedBy;
[ActivityInput]
public Double Number
{
set { number = value; }
}
[ActivityInput("Raised to the Power")]
public Double RaisedToThePower
{
set { raisedBy = value; }
}
[ActivityOutput]
public Double Power
{
get { return Math.Pow(number, raisedBy); }
}
}
There are some restrictions on classes that support integration with Orchestrator.
It must be a publicly exported type.
It must not be abstract.
It must not be static.
It must have a default constructor.
If any of these restrictions is violated an application exception will be generated when you try to interact with the class using Orchestrator.
Activity |
Initializes a new instance of the ActivityAttribute class. |
Activity |
Initializes a new instance of the ActivityAttribute class with the given name. |
Description |
Gets and sets a description of the Orchestrator activity. |
License |
Obsolete.
Obsolete. Gets or sets the license key given to the Orchestrator activity. |
Name |
Get the name given to the Orchestrator activity. |
Show |
Gets or sets whether the Orchestrator activity should include a Filters page when it is displayed in the Runbook Designer. |
Show |
Gets or sets whether the Orchestrator activity should include a Properties page when it is displayed in the Runbook Designer. |
Tuote | Versiot |
---|---|
System Center Orch SDK | 2012, 2016 |