For initializing the new instance of LinkedResource, the
.NET 2.0 Framework supports six overloaded constructors. These are used for
setting different initial parameters with a common goal for getting the content
of an embedded resource. These constructors are:
1.
LinkedResource (contentStream as System.IO.Stream): Initializes a new
instance of LinkedResource using the supplied Stream.
2.
LinkedResource (fileName as String): Initializes a new instance of
LinkedResource using the specified file name.
3.
LinkedResource (contentStream as System.IO.Stream, contentType as
ContentType): Initializes a new instance of LinkedResource with the values
supplied by Stream and ContentType.
4.
LinkedResource (contentStream as System.IO.Stream, mediaType as String):
Initializes a new instance of LinkedResource with the specified Stream and MIME
media type.
5.
LinkedResource (fileName as String, contentType as ContentType):
Initializes a new instance of LinkedResource with the specified file name and
content type.
6.
LinkedResource (fileName as String, mediaType as String): Initializes a
new instance of LinkedResource with the specified file name and MIME media
type.