Share via


SPFileExtensionsCollection.ContainExtension method

Verify that the given extension is in the collection.

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

Syntax

'Declaration
Public Function ContainExtension ( _
    extension As String _
) As Boolean
'Usage
Dim instance As SPFileExtensionsCollection
Dim extension As String
Dim returnValue As Boolean

returnValue = instance.ContainExtension(extension)
public bool ContainExtension(
    string extension
)

Parameters

  • extension
    Type: System.String

    A string representation of the extension to verify.

Return value

Type: System.Boolean
A Boolean value = true if the extension is in the collection.

See also

Reference

SPFileExtensionsCollection class

SPFileExtensionsCollection members

Microsoft.SharePoint.Utilities namespace