共用方式為


SPPersistedObjectCollection<T>.GetValue<U> method

使用指定的類型和預設名稱從集合中擷取的物件。

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

Syntax

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

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

Type parameters

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

傳回值

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

請參閱

參照

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

GetValue overload

Microsoft.SharePoint.Administration namespace