AlternateView.CreateAlternateViewFromString

CreateAlternateViewFromString(string)

Creates a AlternateView of using the content specified in a string.

public static AlternateView CreateAlternateViewFromString(string content)
ParameterTypeDescription
contentStringThe string that contains the content.

Return Value

An AlternateView object that represents an alternate view.

See Also


CreateAlternateViewFromString(string, Encoding, string)

Creates a AlternateView of using the content specified in a string.

public static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding, 
    string mediaType)
ParameterTypeDescription
contentStringThe string that contains the content.
contentEncodingEncodingThe content encoding.
mediaTypeStringInternet media type.

Return Value

An AlternateView object that represents an alternate view.

See Also


CreateAlternateViewFromString(string, ContentType)

Creates a AlternateView of using the content specified in a string.

public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType)
ParameterTypeDescription
contentStringThe string that contains the content.
contentTypeContentTypeContent type.

Return Value

An AlternateView object that represents an alternate view.

See Also


CreateAlternateViewFromString(string, ContentType, TransferEncoding)

Creates a AlternateView of using the content specified in a string.

public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType, 
    TransferEncoding transferencoding)
ParameterTypeDescription
contentStringThe string that contains the content.
contentTypeContentTypeContent type.
transferencodingTransferEncodingThe transfer encoding.

Return Value

An AlternateView object that represents an alternate view.

See Also