共用方式為


SPPersistedObjectCollection<T>.GetValue<U> method (Guid)

使用指定的識別碼和類型從集合中擷取的物件。

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

Syntax

'宣告
Public Function GetValue(Of U As SPPersistedObject) ( _
    id As Guid _
) As U
'用途
Dim instance As SPPersistedObjectCollection
Dim id As Guid
Dim returnValue As U

returnValue = instance.GetValue(id)
public U GetValue<U>(
    Guid id
)
where U : SPPersistedObject

Type parameters

  • U
    要擷取之物件的類型。

參數

  • id
    Type: System.Guid

    會識別集合中的物件System.Guid物件。

傳回值

Type: U
物件,如存在 ;否則,請a null reference (Nothing in Visual Basic)。

請參閱

參照

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

GetValue overload

Microsoft.SharePoint.Administration namespace