LinkedResource.CreateLinkedResourceFromString

CreateLinkedResourceFromString(string)

Creates a linked resource from a string.

public static LinkedResource CreateLinkedResourceFromString(string content)
ParameterTypeDescription
contentStringThe content of the resource.

Return Value

The new linked resource.

See Also


CreateLinkedResourceFromString(string, Encoding, string)

Creates a linked resource from a string.

public static LinkedResource CreateLinkedResourceFromString(string content, 
    Encoding contentEncoding, string mediaType)
ParameterTypeDescription
contentStringThe content of the resource.
contentEncodingEncodingThe character encoding of the content.
mediaTypeStringThe MIME media type of the content.

Return Value

The new linked resource.

See Also


CreateLinkedResourceFromString(string, ContentType)

Creates a linked resource from a string.

public static LinkedResource CreateLinkedResourceFromString(string content, ContentType contentType)
ParameterTypeDescription
contentStringThe content of the resource.
contentTypeContentTypeThe content type of the resource.

Return Value

The new linked resource.

See Also