AssociationAttribute.List Property
Gets or sets the name of the target list.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Property List As String
Get
Set
'Usage
Dim instance As AssociationAttribute
Dim value As String
value = instance.List
instance.List = value
public string List { get; set; }
Property Value
Type: System.String
A String that represents the target list.
Examples
The following example shows the List property being used in an [Association] attribute used in the declaration of a property that represents a Lookup column to a Managers list.
[Association(Name="Manager", Storage="_manager", MultivalueType=AssociationType.Multi, List="Managers")]
public EntitySet<Item> Manager {
get {
return this._manager;
}
set {
this._manager.Assign(value);
}
}