AlternateView

AlternateView constructor (1 of 6)

Initializes a new instance of the AlternateView class.

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

See Also


AlternateView constructor (2 of 6)

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 constructor (3 of 6)

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 constructor (4 of 6)

Initializes a new instance of the AlternateView class.

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

See Also


AlternateView constructor (5 of 6)

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 constructor (6 of 6)

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