共用方式為


SPPrefixCollection.Lookup method

如果有的話,請從這個集合,擷取指定之的SPPrefix物件的複本。

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

Syntax

'宣告
Public Function Lookup ( _
    strPrefix As String _
) As SPPrefix
'用途
Dim instance As SPPrefixCollection
Dim strPrefix As String
Dim returnValue As SPPrefix

returnValue = instance.Lookup(strPrefix)
public SPPrefix Lookup(
    string strPrefix
)

參數

  • strPrefix
    Type: System.String

    內含要尋找的前置字元的字串。這是伺服器相對 URL 路徑。

傳回值

Type: Microsoft.SharePoint.Administration.SPPrefix
集合中存在SPPrefix物件。否則,這個值是 null。

請參閱

參照

SPPrefixCollection class

SPPrefixCollection members

Microsoft.SharePoint.Administration namespace