FieldChoice 建構函式
新類別的執行個體FieldChoice與指定的用戶端執行階段內容和物件路徑的用戶端初始化。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Sub New ( _
context As ClientRuntimeContext, _
objectPath As ObjectPath _
)
'用途
Dim context As ClientRuntimeContext
Dim objectPath As ObjectPath
Dim instance As New FieldChoice(context, _
objectPath)
public FieldChoice(
ClientRuntimeContext context,
ObjectPath objectPath
)
參數
context
類型:Microsoft.SharePoint.Client.ClientRuntimeContextClientRuntimeContext物件,表示在執行階段內容,以存取資料和叫用遠端物件上的方法。
objectPath
類型:Microsoft.SharePoint.Client.ObjectPath追蹤在ClientRuntimeContext類別中,建立用戶端物件的方式讓物件可在伺服器上重新建立ObjectPath物件。