SocketTools .NET Edition

PopClient.ThreadModelAttribute Class

Attribute that defines the threading model for the class.

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

System.Object
   System.Attribute
      SocketTools.PopClient.ThreadModelAttribute

[Visual Basic]
<AttributeUsage(ValidOn:=AttributeTargets.Assembly, AllowMultiple:=False, Inherited:=True)>
Public Class PopClient.ThreadModelAttribute
    Inherits Attribute
[C#]
[AttributeUsage(ValidOn=AttributeTargets.Assembly, AllowMultiple=False, Inherited=True)]
public class PopClient.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.PopClient.ThreadModel(SocketTools.PopClient.ThreadModelAttribute.Model.SingleThread)>
    
[CS]
[assembly: SocketTools.PopClient.ThreadModel(SocketTools.PopClient.ThreadModelAttribute.Model.SingleThread)]
    

Requirements

Namespace: SocketTools

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

See Also

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