次の方法で共有


SPMimeMappingCollection.Remove method

Removes a MIME mapping entry from the registered collection of MIME mapping entries. Note that Update on the parent object must be called to commit this change to the underlying store.

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

Syntax

'Declaration
Public Function Remove ( _
    extension As String, _
    progId As String _
) As Boolean
'Usage
Dim instance As SPMimeMappingCollection
Dim extension As String
Dim progId As String
Dim returnValue As Boolean

returnValue = instance.Remove(extension, _
    progId)
public bool Remove(
    string extension,
    string progId
)

Parameters

  • extension
    Type: System.String

    Extension of MIME mapping entry to remove.

  • progId
    Type: System.String

    ProgId of MIME mapping entry to remove.

Return value

Type: System.Boolean
Returns Booleantrue if a MIME mapping was removed from the collection.

See also

Reference

SPMimeMappingCollection class

SPMimeMappingCollection members

Microsoft.SharePoint.Administration namespace