ActivityInputAttribute Class

Marks a property in an Activity class as one that receives input from the Orchestrator data bus.

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

Usage

'Usage
Dim instance As ActivityInputAttribute

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class ActivityInputAttribute
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)] 
public sealed class ActivityInputAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple=false, Inherited=false)] 
public ref class ActivityInputAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) */ 
public final class ActivityInputAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) 
public final class ActivityInputAttribute extends Attribute

Example

using Microsoft.SystemCenter.Orchestrator.Integration;
using System.IO.File;

[Activity("Copy File")]
public class CopyFile
{
    private FileInfo source;
    private FileInfo destination;
    private bool overwrite;

    [ActivityInput]
    public FileInfo Source 
    { 
        set { source = value; } 
    }

    [ActivityInput]
    public FileInfo Destination 
    { 
       set { destination = value; } 
    }

    [ActivityInput(Default=false)]
    public bool Overwrite 
    { 
        set { overwrite = value; } 
    }

    [ActivityMethod]
    public void Run()
    {
        source.CopyTo(destination, overwrite);
    }
}

Remarks

A class may have as many properties marked with ActivityInput attributes as are required.

Properties marked with the ActivityInput attribute must have a public set method. Also, there are some restrictions on the property types that are allowed. Valid property types include the following:

  • Fundamental types (i.e. bool, int, uint, double etc.)

  • Enumerations

  • DateTime

  • Classes with a public constructor taking a string parameter.

Inheritance Hierarchy

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

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

Target Platforms

Change History

See Also

Reference

ActivityInputAttribute Members
Microsoft.SystemCenter.Orchestrator.Integration Namespace