StringWriter MembersKentico 8.1 API Reference
The StringWriter type exposes the following members.
Constructors

  NameDescription
Public methodStringWriter 
Creates new instance of string writer.
Public methodStringWriter(StringBuilder)
Creates new instance of string writer.
Public methodStringWriter(StringBuilder, IFormatProvider)
Creates new instance of string writer.
Back to Top
Methods

  NameDescription
Public methodOnlineClose
Closes the current OnlineStringWriter and the underlying stream.
(Inherited from OnlineStringWriter.)
Public methodOnlineCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from OnlineMarshalByRefObject.)
Public methodOnlineDispose 
Releases all resources used by the OnlineTextWriter object.
(Inherited from OnlineTextWriter.)
Protected methodOnlineDispose(Boolean)
Releases the unmanaged resources used by the OnlineStringWriter and optionally releases the managed resources.
(Inherited from OnlineStringWriter.)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineFlush
Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
(Inherited from OnlineTextWriter.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodOnlineGetStringBuilder
Returns the underlying OnlineStringBuilder.
(Inherited from OnlineStringWriter.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineMemberwiseClone 
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone(Boolean)
Creates a shallow copy of the current OnlineMarshalByRefObject object.
(Inherited from OnlineMarshalByRefObject.)
Public methodOnlineToString
Returns a string containing the characters written to the current StringWriter so far.
(Inherited from OnlineStringWriter.)
Public methodOnlineWrite(Char)
Writes a character to this instance of the StringWriter.
(Inherited from OnlineStringWriter.)
Public methodOnlineWrite(String)
Writes a string to this instance of the StringWriter.
(Inherited from OnlineStringWriter.)
Public methodOnlineWrite( Char )
Writes a character array to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Boolean)
Writes the text representation of a Boolean value to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Int32)
Writes the text representation of a 4-byte signed integer to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(UInt32)
Writes the text representation of a 4-byte unsigned integer to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Int64)
Writes the text representation of an 8-byte signed integer to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(UInt64)
Writes the text representation of an 8-byte unsigned integer to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Single)
Writes the text representation of a 4-byte floating-point value to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Double)
Writes the text representation of an 8-byte floating-point value to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Decimal)
Writes the text representation of a decimal value to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(Object)
Writes the text representation of an object to the text stream by calling ToString on that object.
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(String, Object)
Writes out a formatted string, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(String,  Object )
Writes out a formatted string, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite( Char , Int32, Int32)
Writes the specified region of a character array to this instance of the StringWriter.
(Inherited from OnlineStringWriter.)
Public methodOnlineWrite(String, Object, Object)
Writes out a formatted string, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWrite(String, Object, Object, Object)
Writes out a formatted string, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine 
Writes a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Char)
Writes a character followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine( Char )
Writes an array of characters followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Boolean)
Writes the text representation of a Boolean followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Int32)
Writes the text representation of a 4-byte signed integer followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(UInt32)
Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Int64)
Writes the text representation of an 8-byte signed integer followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(UInt64)
Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Single)
Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Double)
Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Decimal)
Writes the text representation of a decimal value followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(String)
Writes a string followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(Object)
Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(String, Object)
Writes out a formatted string and a new line, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(String,  Object )
Writes out a formatted string and a new line, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine( Char , Int32, Int32)
Writes a subarray of characters followed by a line terminator to the text stream.
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(String, Object, Object)
Writes out a formatted string and a new line, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Public methodOnlineWriteLine(String, Object, Object, Object)
Writes out a formatted string and a new line, using the same semantics as OnlineFormat(String, Object).
(Inherited from OnlineTextWriter.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldOnlineCoreNewLine
Stores the new line characters used for this TextWriter.
(Inherited from OnlineTextWriter.)
Back to Top
Properties

  NameDescription
Public propertyOnlineEncoding
Gets the OnlineEncoding in which the output is written.
(Inherited from OnlineStringWriter.)
Public propertyOnlineFormatProvider
Gets an object that controls formatting.
(Inherited from OnlineTextWriter.)
Public propertyOnlineNewLine
Gets or sets the line terminator string used by the current TextWriter.
(Inherited from OnlineTextWriter.)
Back to Top
See Also