更新 : 2007 年 11 月
オブジェクトに文字を書き込みます。
名前空間 : 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);
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。