OwinResponse.Write Method

 

Writes the date contained in the given array to the file.

Namespace:   Microsoft.Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Overload List

Name Description
System_CAPS_pubmethod Write(Byte[])

Writes the given bytes to the response body stream.

System_CAPS_pubmethod Write(Byte[], Int32, Int32)

Writes the given bytes to the response body stream.

System_CAPS_pubmethod Write(String)

Writes the given text to the response body stream using UTF-8.

See Also

OwinResponse Class
Microsoft.Owin Namespace

Return to top

OwinResponse.Write Method (Byte[])

Writes the given bytes to the response body stream.

Syntax

public virtual void Write(
    byte[] data
)
public:
virtual void Write(
    array<unsigned char>^ data
)
abstract Write : 
        data:byte[] -> unit
override Write : 
        data:byte[] -> unit
Public Overridable Sub Write (
    data As Byte()
)

Parameters

Implements

IOwinResponse.Write(Byte[])

Return to top

OwinResponse.Write Method (Byte[], Int32, Int32)

Writes the given bytes to the response body stream.

Syntax

public virtual void Write(
    byte[] data,
    int offset,
    int count
)
public:
virtual void Write(
    array<unsigned char>^ data,
    int offset,
    int count
)
abstract Write : 
        data:byte[] *
        offset:int *
        count:int -> unit
override Write : 
        data:byte[] *
        offset:int *
        count:int -> unit
Public Overridable Sub Write (
    data As Byte(),
    offset As Integer,
    count As Integer
)

Parameters

  • offset
    Type: System.Int32

    The zero-based byte offset in the data parameter at which to begin copying bytes.

Implements

IOwinResponse.Write(Byte[], Int32, Int32)

Return to top

OwinResponse.Write Method (String)

Writes the given text to the response body stream using UTF-8.

Syntax

public virtual void Write(
    string text
)
public:
virtual void Write(
    String^ text
)
abstract Write : 
        text:string -> unit
override Write : 
        text:string -> unit
Public Overridable Sub Write (
    text As String
)

Parameters

Implements

IOwinResponse.Write(String)

Return to top