SPUserCodePropertyCollection.IndexOf method
搜尋指定的SPUserCodeProperty ,並傳回整個集合中第一個項目之以零起始的索引。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function IndexOf ( _
userCodeProperty As SPUserCodeProperty _
) As Integer
'用途
Dim instance As SPUserCodePropertyCollection
Dim userCodeProperty As SPUserCodeProperty
Dim returnValue As Integer
returnValue = instance.IndexOf(userCodeProperty)
public int IndexOf(
SPUserCodeProperty userCodeProperty
)
參數
userCodeProperty
Type: Microsoft.SharePoint.WebPartPages.SPUserCodeProperty要在集合中尋找的屬性物件。
傳回值
Type: System.Int32
起始的索引,整個集合中的第一個項目,如果有找到。否則,– 1。
備註
這個方法會在第一個項目開始和結束的最後一個項目在集合中搜尋SPUserCodeProperty 。
請參閱
參照
SPUserCodePropertyCollection class