共用方式為


ContentWriter Members

The following tables list the members exposed by the ContentWriter type.

Protected Fields

Name Description
Protected Field OutStream (Inherited from BinaryWriter.)

Public Properties

Name Description
Public Property BaseStream (Inherited from BinaryWriter.)
Public Property TargetPlatform Gets the content build target platform.
Public Property TargetProfile Gets or sets the target graphics profile.

Public Methods

Name Description
Public Method Close (Inherited from BinaryWriter.)
Public Method Equals (Inherited from Object.)
Public Method Flush (Inherited from BinaryWriter.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method Seek (Inherited from BinaryWriter.)
Public Method ToString (Inherited from Object.)
Public Method Write Overloaded. Writes a value.
Public Method WriteExternalReference Writes the name of an external file to the output binary.
Public Method WriteObject Overloaded. Writes a single object preceded by a type identifier to the output binary.
Public Method WriteRawObject Overloaded. Writes a single object to the output binary as an instance of the specified type.
Public Method WriteSharedResource Adds a shared reference to the output binary and records the object to be serialized later.

Protected Methods

Name Description
Protected Method Dispose (Inherited from BinaryWriter.)
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method Write7BitEncodedInt (Inherited from BinaryWriter.)

See Also

Reference

ContentWriter Class
Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler Namespace