Returns the identity of this channel when listening
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property InstanceId As String |
C# | |
---|
public string InstanceId {get;} |
Example
Library/Library.Test/TestIpcChannel.cs
C# | Copy Code |
---|
using (IpcEventChannel ch1 = new IpcEventChannel(@"CSharpTest.Net\IpcChannelTest", _channel))
using (IpcEventChannel ch2 = new IpcEventChannel(@"CSharpTest.Net\IpcChannelTest", _channel))
{
Assert.AreNotEqual(ch1.InstanceId, ch2.InstanceId);
} |
VB.NET | Copy Code |
---|
Using ch1 As New IpcEventChannel("CSharpTest.Net\IpcChannelTest", _channel)
Using ch2 As New IpcEventChannel("CSharpTest.Net\IpcChannelTest", _channel)
Assert.AreNotEqual(ch1.InstanceId, ch2.InstanceId)
End Using
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also