共用方式為


SPPrefixCollection.Contains method

會傳回 Boolean 值,表示集合是否包含於指定前置字元。

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

Syntax

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

returnValue = instance.Contains(strPrefix)
public bool Contains(
    string strPrefix
)

參數

  • strPrefix
    Type: System.String

    內含之字首的字串。這是伺服器相對 URL 路徑。

傳回值

Type: System.Boolean
true集合包含前置詞 ; 如果否則,請false。

請參閱

參照

SPPrefixCollection class

SPPrefixCollection members

Microsoft.SharePoint.Administration namespace