ContentTypeAttribute Class

 

Declares an association between an extension and a particular content type.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Utilities.MultipleBaseMetadataAttribute
      Microsoft.VisualStudio.Utilities.ContentTypeAttribute

public sealed class ContentTypeAttribute : MultipleBaseMetadataAttribute

NameDescription
System_CAPS_pubmethodContentTypeAttribute(String)

Initializes a new instance of ContentTypeAttribute.

NameDescription
System_CAPS_pubpropertyContentTypes

The content type name.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

For more information about this attribute, see "Extending Content Types" in Editor Extension Points. To find out how to link a content type to a file name extension, see Walkthrough: Linking a Content Type to a File Name Extension.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: