SocketTools .NET Edition

ImapClient.ThreadModelAttribute Class

Attribute that defines the threading model for the class.

For a list of all members of this type, see ImapClient.ThreadModelAttribute Members.

System.Object
   System.Attribute
      SocketTools.ImapClient.ThreadModelAttribute

[Visual Basic]
<AttributeUsage(ValidOn:=AttributeTargets.Assembly, AllowMultiple:=False, Inherited:=True)>
Public Class ImapClient.ThreadModelAttribute
    Inherits Attribute
[C#]
[AttributeUsage(ValidOn=AttributeTargets.Assembly, AllowMultiple=False, Inherited=True)]
public class ImapClient.ThreadModelAttribute : Attribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The ThreadModel attribute is used to define the threading model that is to be used when an instance of the class is created. This attribute is defined in the assembly information module for the language, such as AssemblyInfo.cs when programming C#.

Example

[Visual Basic]
<Assembly: SocketTools.ImapClient.ThreadModel(SocketTools.ImapClient.ThreadModelAttribute.Model.SingleThread)>
    
[CS]
[assembly: SocketTools.ImapClient.ThreadModel(SocketTools.ImapClient.ThreadModelAttribute.Model.SingleThread)]
    

Requirements

Namespace: SocketTools

Assembly: SocketTools.ImapClient (in SocketTools.ImapClient.dll)

See Also

ImapClient.ThreadModelAttribute Members | SocketTools Namespace | ThreadModel Property (SocketTools.ImapClient)