SocketTools .NET Edition

NetworkTime.ThreadModelAttribute Class

Attribute that defines the threading model for the class.

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

System.Object
   System.Attribute
      SocketTools.NetworkTime.ThreadModelAttribute

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

Requirements

Namespace: SocketTools

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

See Also

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