Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the set of accept headers associated with file extensions defined in the configuration file for a site.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Function GetAcceptHeaderExtensions ( _
web As SPWeb _
) As String()
'Usage
Dim web As SPWeb
Dim returnValue As String()
returnValue = SPUtility.GetAcceptHeaderExtensions(web)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static string[] GetAcceptHeaderExtensions(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebA Microsoft.SharePoint.SPWeb object that represents the site.
Return Value
Type: []
A string array that contains the accept headers for the site.