CSharpTest.Net
InstanceId Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IpcChannel Namespace > IpcEventChannel Class : InstanceId Property

Glossary Item Box

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.NETCopy 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

Generated with Document! X 2011 by Innovasys