AlternateView Constructor

Initializes a new instance of AlternateView.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method AlternateView(Stream) Initializes a new instance of AlternateView with the specified Stream.
Public method AlternateView(String) Initializes a new instance of AlternateView with the specified file name.
Public method AlternateView(Stream, ContentType) Initializes a new instance of AlternateView with the specified Stream and ContentType.
Public method AlternateView(Stream, String) Initializes a new instance of AlternateView with the specified Stream and media type.
Public method AlternateView(String, ContentType) Initializes a new instance of AlternateView with the specified file name and content type.
Public method AlternateView(String, String) Initializes a new instance of AlternateView with the specified file name and media type.
Top

A new instance of the AlternateView class call also be initialized by calling one of the CreateAlternateViewFromString methods.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft