public class GetDateTimeNow : CodeActivity
{
public static DependencyProperty DateTimeNowProperty = DependencyProperty.Register("DateTimeNow", typeof(DateTime), typeof(GetDateTimeNow));
[Output("Date and Time Now")]
public OutArgument<DateTime> DateTimeNow
{
get;
set;
}
protected override void Execute(CodeActivityContext context)
{
DateTimeNow.Set(context, DateTime.Now);
}
}
{
public static DependencyProperty DateTimeNowProperty = DependencyProperty.Register("DateTimeNow", typeof(DateTime), typeof(GetDateTimeNow));
[Output("Date and Time Now")]
public OutArgument<DateTime> DateTimeNow
{
get;
set;
}
protected override void Execute(CodeActivityContext context)
{
DateTimeNow.Set(context, DateTime.Now);
}
}
No comments:
Post a Comment