次の方法で共有


IPacket.WriteInt32 メソッド

更新 : 2007 年 11 月

オブジェクトに整数を書き込みます。

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

構文

'宣言
Sub WriteInt32 ( _
    in_int32 As Integer _
)
'使用
Dim instance As IPacket
Dim in_int32 As Integer

instance.WriteInt32(in_int32)
void WriteInt32(
    int in_int32
)
void WriteInt32(
    int in_int32
)
function WriteInt32(
    in_int32 : int
)

パラメータ

  • in_int32
    型 : System.Int32

    パケットに書き込む整数。

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