FieldCollection.AddDependentLookup 方法

将辅助查阅字段添加到字段 (2) 集合。对 SP 的引用 (3)返回已添加的字段。

命名空间:  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 Function AddDependentLookup ( _
    displayName As String, _
    primaryLookupField As Field, _
    lookupField As String _
) As Field
用法
Dim instance As FieldCollection
Dim displayName As String
Dim primaryLookupField As Field
Dim lookupField As String
Dim returnValue As Field

returnValue = instance.AddDependentLookup(displayName, _
    primaryLookupField, lookupField)
public Field AddDependentLookup(
    string displayName,
    Field primaryLookupField,
    string lookupField
)

参数

  • displayName
    类型:System.String

    添加的字段 (2) 的标题。

  • primaryLookupField
    类型:Microsoft.SharePoint.Client.Field

    相关联的依赖的查阅字段的主查阅字段。取决于查阅字段将包含引用了主查阅字段的实例的列表项中的数据。

  • lookupField
    类型:System.String

    要包含数据的目标列表 (1) 的字段 (2) 的名称。

返回值

类型:Microsoft.SharePoint.Client.Field

另请参阅

引用

FieldCollection 类

FieldCollection 成员

Microsoft.SharePoint.Client 命名空间