Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Creates a file association and adds it to the collection.
Namespace: Microsoft.VisualStudio.ManagedInterfaces.Publish
Assembly: Microsoft.VisualStudio.ManagedInterfaces.9.0 (in Microsoft.VisualStudio.ManagedInterfaces.9.0.dll)
Syntax
'Declaration
Sub Add ( _
extension As String, _
defaultIcon As String, _
description As String, _
progid As String _
)
void Add(
string extension,
string defaultIcon,
string description,
string progid
)
void Add(
String^ extension,
String^ defaultIcon,
String^ description,
String^ progid
)
abstract Add :
extension:string *
defaultIcon:string *
description:string *
progid:string -> unit
function Add(
extension : String,
defaultIcon : String,
description : String,
progid : String
)
Parameters
extension
Type: StringThe file name extension for the file type.
defaultIcon
Type: StringThe default icon that is associated with files of this type.
description
Type: StringThe description of the program used to open files of this type.
progid
Type: StringThe ProgID that identifies the program used to open files of this type.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | extension is nulla null reference (Nothing in Visual Basic) or an invalid file name extension. |
Remarks
If an association for the file name extension already exists, the new association replaces it in the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.