Catalyst Internet Mail .NET

InternetMail.AttachThread Method 

NOTE: This method is now obsolete.

The AttachThread method has been deprecated


Attach an instance of the class to the current thread.

[Visual Basic]
<Obsolete(Message:="The AttachThread method has been deprecated", IsError:=False)>
Public Function AttachThread() As Boolean
[C#]
[Obsolete(Message="The AttachThread method has been deprecated", IsError=False)]
public bool AttachThread();

Return Value

A boolean value which specifies if the message could be attached to the current thread. If this method returns false, the message could not be attached to the thread and the application should check the value of the LastError property to determine the cause of the failure.

Remarks

This method has been deprecated and should no longer be used. The current version of the InternetMail class uses a free threading model which permits any thread to access methods and properties. However, applications must take care to synchronize access to the class instance across multiple threads if they are modifying the message contents.

See Also

InternetMail Class | SocketTools Namespace