AlternateView.AlternateView

AlternateView(string)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName)
ParameterTypeDescription
fileNameStringName of the file.

See Also


AlternateView(string, string)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName, string mediaType)
ParameterTypeDescription
fileNameStringName of the file.
mediaTypeStringInternet media type.

See Also


AlternateView(string, ContentType)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName, ContentType contentType)
ParameterTypeDescription
fileNameStringName of the file.
contentTypeContentTypeContent type.

See Also


AlternateView(Stream)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream)
ParameterTypeDescription
contentStreamStreamThe content stream.

See Also


AlternateView(Stream, string)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream, string mediaType)
ParameterTypeDescription
contentStreamStreamThe content stream.
mediaTypeStringInternet media type.

See Also


AlternateView(Stream, ContentType)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream, ContentType contentType)
ParameterTypeDescription
contentStreamStreamThe content stream.
contentTypeContentTypeContent type.

See Also