次の方法で共有


IFileAssociationCollection.Remove Method

Removes a file association from the collection.

Namespace:  Microsoft.VisualStudio.ManagedInterfaces.Publish
Assembly:  Microsoft.VisualStudio.ManagedInterfaces.9.0 (in Microsoft.VisualStudio.ManagedInterfaces.9.0.dll)

Syntax

'宣言
Sub Remove ( _
    extension As String _
)
void Remove(
    string extension
)

Parameters

  • extension
    Type: System.String
    The file name extension for the file type to remove.

Exceptions

Exception Condition
ArgumentNullException

extension is nulla null reference (Nothing in Visual Basic).

Remarks

If the collection does not contain an association for the file name extension, the collection remains unchanged.

.NET Framework Security

See Also

Reference

IFileAssociationCollection Interface

Microsoft.VisualStudio.ManagedInterfaces.Publish Namespace