Export (0) Print
Expand All

ActivityAttribute Class

System Center
This attribute declares that a class defines an Orchestrator Activity.

Namespace: Microsoft.SystemCenter.Orchestrator.Integration
Assembly: Microsoft.SystemCenter.Orchestrator.Integration (in Microsoft.SystemCenter.Orchestrator.Integration.dll)

'Usage
Dim instance As ActivityAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false)] 
public sealed class ActivityAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) */ 
public final class ActivityAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) 
public final class ActivityAttribute extends Attribute

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.


System.Object
   System.Attribute
    Microsoft.SystemCenter.Orchestrator.Integration.ActivityAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

 
Show:
© 2014 Microsoft