ContentTypeAttribute.List Property
Gets or sets the name of the list to which the content type is scoped if, and only if, it is a list-scoped content type.
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 ContentTypeAttribute
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 name of the list.
Examples
The following shows List in use:
[ContentType(Name="Item", Id="0x01", List="Team Members")]
[DataContract()]
public partial class TeamMembersItem : Item {
// Member declarations omitted.
}