共用方式為


AddToDate 類別

 

代表用來新增至輸入 DateTime 或 TimeSpan 的活動。

命名空間:   Microsoft.Activities.Expressions
組件:  Microsoft.Activities (在 Microsoft.Activities.dll 中)

繼承階層架構

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        System.Activities.CodeActivity<TResult>
          Microsoft.Activities.Expressions.AddToDate

語法

public sealed class AddToDate : CodeActivity<DateTime>
public ref class AddToDate sealed : CodeActivity<DateTime>
[<Sealed>]
type AddToDate = 
    class
        inherit CodeActivity<DateTime>
    end
Public NotInheritable Class AddToDate
    Inherits CodeActivity(Of Date)

建構函式

名稱 描述
System_CAPS_pubmethod AddToDate()

初始化 AddToDate 類別的新執行個體。

屬性

名稱 描述
System_CAPS_protproperty CacheId

(繼承自 Activity。)

System_CAPS_pubproperty Days

取得或設定天數值。

System_CAPS_pubproperty DisplayName

(繼承自 Activity。)

System_CAPS_pubproperty Hours

取得或設定時數值。

System_CAPS_pubproperty Id

(繼承自 Activity。)

System_CAPS_protproperty ImplementationVersion

(繼承自 CodeActivity<TResult>。)

System_CAPS_pubproperty Input

取得或設定輸入 DateTime。

System_CAPS_pubproperty Milliseconds

取得或設定毫秒值。

System_CAPS_pubproperty Minutes

取得或設定分鐘值。

System_CAPS_pubproperty Months

取得或設定月份值。

System_CAPS_pubproperty Result

(繼承自 Activity<TResult>。)

System_CAPS_pubproperty ResultType

(繼承自 ActivityWithResult。)

System_CAPS_pubproperty Seconds

取得或設定秒數值。

System_CAPS_pubproperty TimeSpan

取得或設定輸入 TimeSpan。

System_CAPS_pubproperty Years

取得或設定年份值。

方法

名稱 描述
System_CAPS_pubmethod Equals(Object)

(繼承自 Object。)

System_CAPS_pubmethod GetHashCode()

(繼承自 Object。)

System_CAPS_pubmethod GetType()

(繼承自 Object。)

System_CAPS_pubmethod ToString()

(繼承自 Activity。)

執行緒安全

這個類型的任何公用靜態 (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

Microsoft.Activities.Expressions 命名空間

回到頁首