AlternateView

AlternateView(string)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName)
Parameter Type Description
fileName String Name of the file.

See Also


AlternateView(string, string)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName, string mediaType)
Parameter Type Description
fileName String Name of the file.
mediaType String Internet media type.

See Also


AlternateView(string, ContentType)

Initializes a new instance of the AlternateView class.

public AlternateView(string fileName, ContentType contentType)
Parameter Type Description
fileName String Name of the file.
contentType ContentType Content type.

See Also


AlternateView(Stream)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream)
Parameter Type Description
contentStream Stream The content stream.

See Also


AlternateView(Stream, string)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream, string mediaType)
Parameter Type Description
contentStream Stream The content stream.
mediaType String Internet media type.

See Also


AlternateView(Stream, ContentType)

Initializes a new instance of the AlternateView class.

public AlternateView(Stream contentStream, ContentType contentType)
Parameter Type Description
contentStream Stream The content stream.
contentType ContentType Content type.

See Also