IPacket.WriteBool メソッド

更新 : 2007 年 11 月

オブジェクトにブール値を書き込みます。

名前空間 :  Microsoft.SmartDevice.DeviceAgentTransport
アセンブリ :  Microsoft.SmartDevice.DeviceAgentTransport (Microsoft.SmartDevice.DeviceAgentTransport.dll 内)

構文

'宣言
Sub WriteBool ( _
    in_bool As Boolean _
)
'使用
Dim instance As IPacket
Dim in_bool As Boolean

instance.WriteBool(in_bool)
void WriteBool(
    bool in_bool
)
void WriteBool(
    [InAttribute] bool in_bool
)
function WriteBool(
    in_bool : boolean
)

パラメータ

  • in_bool
    型 : System.Boolean

    パケットに書き込むブール値。

    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 名前空間