Retrieves the name of this event
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public ReadOnly Property LocalName As String  | 
 
| C# |   | 
|---|
public string LocalName {get;} | 
 
            
            
             
            
			
			
            
            
            
Example
Library/Library.Test/TestIpcChannel.cs
             | C# |  Copy Code | 
|---|
using (IpcEventChannel channel = new IpcEventChannel(_registrar, _channel))
{
    Assert.AreEqual("Test", channel["Test"].LocalName);
    Assert.AreEqual("TEST", channel["TEST"].LocalName);
    Assert.AreEqual("test", channel["test"].LocalName);
    int count = 0;
    foreach (IpcEvent e in channel.GetEvents())
    {
        Assert.AreEqual("test", e.LocalName.ToLower());
        count++;
    }
    Assert.AreEqual(3, count);
} | 
 
| VB.NET |  Copy Code | 
|---|
Using channel As New IpcEventChannel(_registrar, _channel)
    Assert.AreEqual("Test", channel("Test").LocalName)
    Assert.AreEqual("TEST", channel("TEST").LocalName)
    Assert.AreEqual("test", channel("test").LocalName)
    Dim count As Integer = 0
    For Each e As IpcEvent In channel.GetEvents()
        Assert.AreEqual("test", e.LocalName.ToLower())
        System.Math.Max(System.Threading.Interlocked.Increment(count),count - 1)
    Next
    Assert.AreEqual(3, count)
End Using | 
 
 
            
            
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
 
            
            
See Also