共用方式為


SPFieldCollection.AddLookup Method

Include Protected Members
Include Inherited Members

Creates a lookup field in the collection of fields for one list that points to a field in the collection for another list.

Overload List

  Name Description
Public method AddLookup(String, Guid, Boolean) Creates a lookup field in the collection of fields for one list that points to a field in the collection for another list in the same website.
Public method AddLookup(String, Guid, Guid, Boolean) Creates a lookup field in the collection of fields for one list that points to a field in the collection for another list in a different website.

Top

See Also

Reference

SPFieldCollection Class

SPFieldCollection Members

Microsoft.SharePoint Namespace