---
title: "LinkedResource.CreateLinkedResourceFromString"
url: "https://reference.aspose.com/email/net/aspose.email/linkedresource/createlinkedresourcefromstring/"
product: "Aspose.Email for .NET API Reference"
description: "LinkedResource method. Creates a linked resource from a string"
---

## CreateLinkedResourceFromString(string) {#createlinkedresourcefromstring}

Creates a linked resource from a string.

```csharp
public static LinkedResource CreateLinkedResourceFromString(string content)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the resource. |

### Return Value

The new linked resource.

### See Also

* class [LinkedResource](../)
* namespace [Aspose.Email](../../linkedresource/)
* assembly [Aspose.Email](../../../)

---

## CreateLinkedResourceFromString(string, Encoding, string) {#createlinkedresourcefromstring_2}

Creates a linked resource from a string.

```csharp
public static LinkedResource CreateLinkedResourceFromString(string content, 
    Encoding contentEncoding, string mediaType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the resource. |
| contentEncoding | Encoding | The character encoding of the content. |
| mediaType | String | The MIME media type of the content. |

### Return Value

The new linked resource.

### See Also

* class [LinkedResource](../)
* namespace [Aspose.Email](../../linkedresource/)
* assembly [Aspose.Email](../../../)

---

## CreateLinkedResourceFromString(string, ContentType) {#createlinkedresourcefromstring_1}

Creates a linked resource from a string.

```csharp
public static LinkedResource CreateLinkedResourceFromString(string content, ContentType contentType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the resource. |
| contentType | ContentType | The content type of the resource. |

### Return Value

The new linked resource.

### See Also

* class [ContentType](../../../aspose.email.mime/contenttype/)
* class [LinkedResource](../)
* namespace [Aspose.Email](../../linkedresource/)
* assembly [Aspose.Email](../../../)


