Поделиться через


IPacket.WriteChar - метод

Обновлен: Ноябрь 2007

Записывает символ в объект.

Пространство имен:  Microsoft.SmartDevice.DeviceAgentTransport
Сборка:  Microsoft.SmartDevice.DeviceAgentTransport (в Microsoft.SmartDevice.DeviceAgentTransport.dll)

Синтаксис

'Декларация
Sub WriteChar ( _
    in_wchar As Char _
)
'Применение
Dim instance As IPacket
Dim in_wchar As Char

instance.WriteChar(in_wchar)
void WriteChar(
    char in_wchar
)
void WriteChar(
    wchar_t in_wchar
)
function WriteChar(
    in_wchar : char
)

Параметры

  • in_wchar
    Тип: System.Char
    Символ, записываемый в пакет.

Примеры

    packet = PacketFactory.GetNewPacket()

    ' Write the version of .NET Compact Framework into the packet.
    packet.WriteString("Hello Desktop Computer")
    packet.WriteInt32(Environment.Version.Major)
    packet.WriteInt32(Environment.Version.Minor)
    packet.WriteInt32(Environment.Version.Build)
    packet.WriteInt32(Environment.Version.Revision)

    ' Pass the packet to desktop application.
    packetStream.Write(packet)

End Sub 'Main
packet = PacketFactory.GetNewPacket();

// Write the version of .NET Compact Framework into the packet.
packet.WriteString("Hello Desktop Computer");
packet.WriteInt32(Environment.Version.Major);
packet.WriteInt32(Environment.Version.Minor);
packet.WriteInt32(Environment.Version.Build);
packet.WriteInt32(Environment.Version.Revision);

// Pass the packet to desktop application.
packetStream.Write(packet);

Разрешения

См. также

Ссылки

IPacket Интерфейс

IPacket - члены

Microsoft.SmartDevice.DeviceAgentTransport - пространство имен