Content Class
Represents an arbitrary content that is either embedded in or linked to the presentation file.
- Inheritance:
- System.ObjectContent
Properties
ContentType
Gets the media type of the content.
This value can be null if the content is not embedded in but is linked to the presentation file.
Property Value
- System.String
The media type of the content.
See Also
IsExternal
Gets a value indicating whether this content is linked to the presentation file.
Property Value
- System.Boolean
true if this content is linked to the presentation file; otherwise, false.
Link
Gets the location of the content that is not embedded in the presentation file.
Property Value
- System.String
The location of the content that does not reside within the presentation file.
Methods
Open()
Opens the content as a System.IO.Stream.
Make sure to call System.IO.Stream.Dispose on the returned instance after it is no longer used and before it gets out of scope.
Returns
- System.IO.Stream
An instance of a System.IO.Stream type that represents content data.
Remarks
If content is linked to the presentation file (Link property is not null), this method will attempt to open an external content. This operation might fail if the Link value is not in the correct format or if executing code doesn't have permissions to access content at the location specified in the Link value.
ToString()
Returns a System.String that represents this Content instance.
Returns
- System.String
A System.String that represents this Content instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).