SPListCollection.GetList method (Guid, Boolean, Boolean, Boolean)
從集合中,包括檢視表和表單、 安全性資料和相關的欄位的中繼資料會傳回具有指定之 GUID 的清單。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetList ( _
uniqueId As Guid, _
fetchMetadata As Boolean, _
fetchSecurityData As Boolean, _
fetchRelatedFields As Boolean _
) As SPList
'用途
Dim instance As SPListCollection
Dim uniqueId As Guid
Dim fetchMetadata As Boolean
Dim fetchSecurityData As Boolean
Dim fetchRelatedFields As Boolean
Dim returnValue As SPList
returnValue = instance.GetList(uniqueId, _
fetchMetadata, fetchSecurityData, _
fetchRelatedFields)
public SPList GetList(
Guid uniqueId,
bool fetchMetadata,
bool fetchSecurityData,
bool fetchRelatedFields
)
參數
uniqueId
Type: System.Guid傳回清單 GUID。
fetchMetadata
Type: System.Booleantrue擷取中繼資料檢視表和表單的清單。否則, false。
fetchSecurityData
Type: System.Booleantrue擷取清單的安全性資料否則, false。
fetchRelatedFields
Type: System.Booleantrue擷取相關的欄位,此清單中 ;否則, false。如需詳細資訊,請參閱Custom Related Fields。
傳回值
Type: Microsoft.SharePoint.SPList
表示清單的物件。
Exceptions
Exception | Condition |
---|---|
SPException | GUID 做為引數傳遞給uniqueId參數不正確。 |