FileExtensionToContentTypeDefinition Class
Visual Studio 2012
Specifies a mapping between a content type and a file extension.
Namespace:
Microsoft.VisualStudio.Utilities
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
The FileExtensionToContentTypeDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | FileExtensionToContentTypeDefinition | Initializes a new instance of FileExtensionToContentTypeDefinition. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Because you cannot subclass this type, you can use the [Export] attribute with no type.
For more information about this definition, see Walkthrough: Linking a Content Type to a File Name Extension.
.gif?cs-save-lang=1&cs-lang=cpp)