Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reads an object from the current stream.
Syntax
'Declaration
Protected Internal Overrides Function Read ( _
input As ContentReader, _
existingInstance As Object _
) As Object
protected internal override Object Read (
ContentReader input,
Object existingInstance
)
protected:
internal:
Object Read(
ContentReader input,
Object existingInstance
) override
Parameters
- input
Type: ContentReader
The ContentReader used to read the object. - existingInstance
Type: Object
An existing object to read into.
Return Value
Type: Object
The object that was read.
Exceptions
Exception type | Condition |
---|---|
ContentLoadException | Error loading the object. File contains an object of a type other than the type requested. |
Requirements
Namespace: Microsoft.Xna.Framework.Content
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
ContentTypeReader Generic Class
ContentTypeReader Members
Microsoft.Xna.Framework.Content Namespace
Platforms
Windows Phone