ActivityAttribute Class

Definition

This attribute declares that a class defines an Orchestrator Activity.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class ActivityAttribute : Attribute
Inheritance
ActivityAttribute
Attributes

Examples

VB
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); }   
    }  
}  

Remarks

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.

Constructors

ActivityAttribute()

Initializes a new instance of the ActivityAttribute class.

ActivityAttribute(String)

Initializes a new instance of the ActivityAttribute class with the given name.

Properties

Description

Gets and sets a description of the Orchestrator activity.

LicenseKey
Obsolete.

Obsolete.

Gets or sets the license key given to the Orchestrator activity.

Name

Get the name given to the Orchestrator activity.

ShowFilters

Gets or sets whether the Orchestrator activity should include a Filters page when it is displayed in the Runbook Designer.

ShowInputs

Gets or sets whether the Orchestrator activity should include a Properties page when it is displayed in the Runbook Designer.

Applies to

Tuote Versiot
System Center Orch SDK 2012, 2016