private SetProp ( |
||
hwnd | ||
lpString | string | |
hData | int | |
return | int |
/// <summary> /// Registers the instance to recieve messages from a named channel. /// </summary> /// <param name = "channelName">The channel name to listen on.</param> public void RegisterChannel(string channelName) { Validate.That(channelName).IsNotNullOrEmpty(); if (!disposed) { lock (disposeLock) { if (!disposed) { Native.SetProp(Handle, GetChannelKey(channelName), (int)Handle); return; } } } throw new ObjectDisposedException("IXDListener", "This instance has been disposed."); }
public void RegisterChannel(string channelName) { channelName.Requires("channelName").IsNotNullOrWhiteSpace(); if (disposed) { throw new ObjectDisposedException("IXDListener", "This instance has been disposed."); } lock (disposeLock) { if (disposed) { throw new ObjectDisposedException("IXDListener", "This instance has been disposed."); } Native.SetProp(Handle, GetChannelKey(channelName), (int)Handle); } }