次の方法で共有


SPListCollection.GetList method (Guid, Boolean, Boolean)

Returns the list with the specified GUID from the collection, including metadata for views and forms, and security data.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetList ( _
    uniqueId As Guid, _
    fetchMetadata As Boolean, _
    fetchSecurityData As Boolean _
) As SPList
'Usage
Dim instance As SPListCollection
Dim uniqueId As Guid
Dim fetchMetadata As Boolean
Dim fetchSecurityData As Boolean
Dim returnValue As SPList

returnValue = instance.GetList(uniqueId, _
    fetchMetadata, fetchSecurityData)
public SPList GetList(
    Guid uniqueId,
    bool fetchMetadata,
    bool fetchSecurityData
)

Parameters

  • uniqueId
    Type: System.Guid

    The GUID for the list to return.

  • fetchMetadata
    Type: System.Boolean

    true to retrieve metadata for the views and forms of the list; otherwise, false.

  • fetchSecurityData
    Type: System.Boolean

    true to retrieve security data for the list; otherwise, false.

Return value

Type: Microsoft.SharePoint.SPList
An object that represents the list.

See also

Reference

SPListCollection class

SPListCollection members

GetList overload

Microsoft.SharePoint namespace