Tungsten
CopyDataTMessage Class |
Sends and receives Generics via WM_COPYDATA
Inheritance Hierarchy
SystemObject SystemMarshalByRefObject
System.Windows.FormsNativeWindow
W.InterProcessCopyData
W.InterProcessCopyDataTMessage
System.Windows.FormsNativeWindow
W.InterProcessCopyData
W.InterProcessCopyDataTMessage
Namespace: W.InterProcess
Assembly: Tungsten.InterProcess (in Tungsten.InterProcess.dll) Version: 2.0.0
Syntax
C#
public sealed class CopyData<TMessage> : CopyData
Type Parameters
- TMessage
[Missing <typeparam name="TMessage"/> documentation for "T:W.InterProcess.CopyData`1"]
The CopyDataTMessage type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CopyDataTMessage(String) |
Constructs a new CopyData instance which can only listen for messages
| |
CopyDataTMessage(PredicateString, Boolean) |
Constructs a new CopyData instance
| |
CopyDataTMessage(IntPtr, PredicateString, Boolean) |
Constructs a new CopyData instance
| |
CopyDataTMessage(Form, PredicateString, Boolean) |
Constructs a new CopyData instance
|
Properties
Name | Description | |
---|---|---|
Handle | Gets the handle for this window. (Inherited from NativeWindow.) |
Methods
Name | Description | |
---|---|---|
AssignHandle | Assigns a handle to this window. (Inherited from NativeWindow.) | |
CreateHandle | Creates a window and its handle with the specified creation parameters. (Inherited from NativeWindow.) | |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
DefWndProc | Invokes the default window procedure associated with this window. (Inherited from NativeWindow.) | |
DestroyHandle | Destroys the window and its handle. (Inherited from NativeWindow.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
RefreshTargets |
Refreshes the list of target windows
(Inherited from CopyData.) | |
ReleaseHandle | Releases the handle associated with this window. (Inherited from NativeWindow.) | |
Send(Byte) |
Sends a message via WM_COPYDATA
(Inherited from CopyData.) | |
Send(TMessage) |
Sends a message via WM_COPYDATA
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
BytesReceived |
Raised when a message has been received
(Inherited from CopyData.) | |
Error |
Raised when an error occurs while sending or receiving messages
(Inherited from CopyData.) | |
MessageReceived |
Raised when a message has been received
|
Extension Methods
Name | Description | |
---|---|---|
AsTType |
Use Generic syntax for the as operator.
(Defined by AsExtensions.) | |
InitializeProperties | Scans the fields and properties of "owner" and sets the member's Owner property to "owner" This method should be called in the constructor of any class which has IOwnedProperty members | |
InLock(Action) | Overloaded.
Performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockTType(FuncTType) | Overloaded.
Performs the function in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockAsync(Action) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
InLockAsyncTType(FuncTType) | Overloaded.
Asynchronously performs the action in a Monitor lock
(Defined by MonitorExtensions.) | |
IsDirty | Scans the IsDirty value of each field and property of type IProperty | |
Lock |
Performs a Monitor lock
(Defined by MonitorExtensions.) | |
MarkAsClean | Scans each field and property of type IProperty and sets it's IsDirty flag to false | |
Unlock |
Performs a Monitor unlock
(Defined by MonitorExtensions.) |
See Also