SPFileExtensionsCollection.ContainExtension Method
Verify that the given extension is in the collection.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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.StringA 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