ActivityOutputAttribute Class
Marks a specific property inside an Activity class as one that publishes its value to 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 ActivityOutputAttribute
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class ActivityOutputAttribute
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class ActivityOutputAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple=false, Inherited=false)]
public ref class ActivityOutputAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false) */
public final class ActivityOutputAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)
public final class ActivityOutputAttribute extends Attribute
Example
[Activity("File Length")]
public class FileLength
{
private FileInfo fileInfo;
[ActivityInput]
public FileInfo File
{
set { fileInfo = value; }
}
[ActivityOutput("File Length", Description="File length in bytes")]
public long Result
{
get { return fileInfo.Length; }
}
}
Remarks
A class may mark as many properties with the ActivityOutput attribute as required.
A property marked with the ActivityOutput attribute must have a public set method.
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.SystemCenter.Orchestrator.Integration.ActivityOutputAttribute
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
ActivityOutputAttribute Members
Microsoft.SystemCenter.Orchestrator.Integration Namespace