Freigeben über


SerializationExtensions.Write Method

Definition

Overloads

Write(BinaryWriter, Int16Size)

Writes a Int16Size struct to writer

Write(BinaryWriter, Size)

Writes a System.Drawing.Size struct to writer

Write(BinaryWriter, Guid)

Writes a Guid struct to writer

Write(BinaryWriter, Nullable<Boolean>)

Writes a bool? to writer

Write(BinaryWriter, Nullable<Char>)

Writes a char? to writer

Write(BinaryWriter, Nullable<Double>)

Writes a double? to writer

Write(BinaryWriter, Nullable<Int16>)

Writes a short? to writer

Write(BinaryWriter, Nullable<Int32>)

Writes a int? to writer

Write(BinaryWriter, Nullable<Int64>)

Writes a long? to writer

Write(BinaryWriter, Nullable<Single>)

Writes a float? to writer

Write(BinaryWriter, Nullable<UInt16>)

Writes a ushort? to writer

Write(BinaryWriter, Nullable<UInt32>)

Writes a uint? to writer

Write(BinaryWriter, Nullable<UInt64>)

Writes a ulong? to writer

Write(BinaryWriter, Size)

Writes a System.Windows.Size struct to writer

Write(BinaryWriter, Int16Size)

Writes a Int16Size struct to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Microsoft::VisualStudio::Utilities::Int16Size size);
public static void Write (this System.IO.BinaryWriter writer, Microsoft.VisualStudio.Utilities.Int16Size size);
static member Write : System.IO.BinaryWriter * Microsoft.VisualStudio.Utilities.Int16Size -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, size As Int16Size)

Parameters

writer
BinaryWriter

The writer to write to

size
Int16Size

The size to write

Applies to

Write(BinaryWriter, Size)

Writes a System.Drawing.Size struct to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, System::Drawing::Size size);
public static void Write (this System.IO.BinaryWriter writer, System.Drawing.Size size);
static member Write : System.IO.BinaryWriter * System.Drawing.Size -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, size As Size)

Parameters

writer
BinaryWriter

The writer to write to

size
Size

The size to write

Applies to

Write(BinaryWriter, Guid)

Writes a Guid struct to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Guid guid);
public static void Write (this System.IO.BinaryWriter writer, Guid guid);
static member Write : System.IO.BinaryWriter * Guid -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, guid As Guid)

Parameters

writer
BinaryWriter

The writer to write to

guid
Guid

The Guid to write

Applies to

Write(BinaryWriter, Nullable<Boolean>)

Writes a bool? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<bool> value);
public static void Write (this System.IO.BinaryWriter writer, bool? value);
static member Write : System.IO.BinaryWriter * Nullable<bool> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Boolean))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Boolean>

The value to write

Applies to

Write(BinaryWriter, Nullable<Char>)

Writes a char? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<char> value);
public static void Write (this System.IO.BinaryWriter writer, char? value);
static member Write : System.IO.BinaryWriter * Nullable<char> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Char))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Char>

The value to write

Applies to

Write(BinaryWriter, Nullable<Double>)

Writes a double? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<double> value);
public static void Write (this System.IO.BinaryWriter writer, double? value);
static member Write : System.IO.BinaryWriter * Nullable<double> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Double))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Double>

The value to write

Applies to

Write(BinaryWriter, Nullable<Int16>)

Writes a short? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<short> value);
public static void Write (this System.IO.BinaryWriter writer, short? value);
static member Write : System.IO.BinaryWriter * Nullable<int16> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Short))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Int16>

The value to write

Applies to

Write(BinaryWriter, Nullable<Int32>)

Writes a int? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<int> value);
public static void Write (this System.IO.BinaryWriter writer, int? value);
static member Write : System.IO.BinaryWriter * Nullable<int> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Integer))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Int32>

The value to write

Applies to

Write(BinaryWriter, Nullable<Int64>)

Writes a long? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<long> value);
public static void Write (this System.IO.BinaryWriter writer, long? value);
static member Write : System.IO.BinaryWriter * Nullable<int64> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Long))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Int64>

The value to write

Applies to

Write(BinaryWriter, Nullable<Single>)

Writes a float? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<float> value);
public static void Write (this System.IO.BinaryWriter writer, float? value);
static member Write : System.IO.BinaryWriter * Nullable<single> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of Single))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<Single>

The value to write

Applies to

Write(BinaryWriter, Nullable<UInt16>)

Writes a ushort? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<System::UInt16> value);
public static void Write (this System.IO.BinaryWriter writer, ushort? value);
static member Write : System.IO.BinaryWriter * Nullable<uint16> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of UShort))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<UInt16>

The value to write

Applies to

Write(BinaryWriter, Nullable<UInt32>)

Writes a uint? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<System::UInt32> value);
public static void Write (this System.IO.BinaryWriter writer, uint? value);
static member Write : System.IO.BinaryWriter * Nullable<uint32> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of UInteger))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<UInt32>

The value to write

Applies to

Write(BinaryWriter, Nullable<UInt64>)

Writes a ulong? to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, Nullable<System::UInt64> value);
public static void Write (this System.IO.BinaryWriter writer, ulong? value);
static member Write : System.IO.BinaryWriter * Nullable<uint64> -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, value As Nullable(Of ULong))

Parameters

writer
BinaryWriter

The writer to write to

value
Nullable<UInt64>

The value to write

Applies to

Write(BinaryWriter, Size)

Writes a System.Windows.Size struct to writer

public:
[System::Runtime::CompilerServices::Extension]
 static void Write(System::IO::BinaryWriter ^ writer, System::Windows::Size size);
public static void Write (this System.IO.BinaryWriter writer, System.Windows.Size size);
static member Write : System.IO.BinaryWriter * System.Windows.Size -> unit
<Extension()>
Public Sub Write (writer As BinaryWriter, size As Size)

Parameters

writer
BinaryWriter

The writer to write to

size
Size

The size to write

Applies to