# Class ImageContent

Namespace
  AnthropicClient.Models

Assembly
  AnthropicClient.dll

Represents image content that is part of a message.

    public class ImageContent : Content

Inheritance
  object
  Content
  ImageContent

Inherited Members
  Content.Type
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### ImageContent(string, string)

Initializes a new instance of the ImageContent class.

    public ImageContent(string mediaType, string data)

#### Parameters

`mediaType` string

  The media type of the image.

`data` string

  The data of the image.

#### Exceptions

ArgumentNullException

  Thrown when the media type or data is null.

## Properties

### Source

Gets the source of the image.

    public ImageSource Source { get; init; }

#### Property Value

ImageSource