Share via


ContentType Class

Used to deserialize the content type information

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Framework.XamlTypes.ContentType

Namespace:  Microsoft.Build.Framework.XamlTypes
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
<ContentPropertyAttribute("Metadata")> _
Public NotInheritable Class ContentType _
    Implements ISupportInitialize, IProjectSchemaNode
[ContentPropertyAttribute("Metadata")]
public sealed class ContentType : ISupportInitialize, 
    IProjectSchemaNode
[ContentPropertyAttribute(L"Metadata")]
public ref class ContentType sealed : ISupportInitialize, 
    IProjectSchemaNode
[<Sealed>]
[<ContentPropertyAttribute("Metadata")>]
type ContentType =  
    class 
        interface ISupportInitialize 
        interface IProjectSchemaNode 
    end
public final class ContentType implements ISupportInitialize, IProjectSchemaNode

The ContentType type exposes the following members.

Constructors

  Name Description
Public method ContentType ConstructorMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

Properties

  Name Description
Public property DefaultContentTypeForItemType Gets or sets a flag that determines whether default content type is available.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property DisplayName Serializes IContentType.DisplayName.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property ItemGroupName Obsolete. Serializes IContentType.DefaultContentTypeForItemTypeMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property ItemType Serializes IContentType.ItemTypeMSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Metadata Serializes content type's metadata. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public property Name Serializes IContentType.Name.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

Methods

  Name Description
Public method BeginInit Begins initialization. See ISupportInitialize.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method EndInit Ends initialization. See ISupportInitialize.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetMetadata Gets the value of the given metadata name.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method GetSchemaObjects Returns an enumerator over all instances of static data that have the given type. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method GetSchemaObjectTypes Returns an enumerator over all types of static data for the data-driven features that this node contains.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.Build.Framework.XamlTypes Namespace