共用方式為


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

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

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

Syntax

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

returnValue = instance.GetValue(name)
public U GetValue<U>(
    string name
)
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