RunInSTAAttribute Class
 

This attribute is used to mark a task class as being required to run in a Single Threaded Apartment for COM.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Framework
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Inheritance Hierarchy
SystemObject
   SystemAttribute
    Microsoft.Build.FrameworkRunInSTAAttribute

Syntax
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, 
	Inherited = false)]
public sealed class RunInSTAAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, 
	Inherited = false)]
public ref class RunInSTAAttribute sealed : Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false,
    Inherited = false)>]
type RunInSTAAttribute = 
    class
        inherit Attribute
    end
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False,
	Inherited := False)>
Public NotInheritable Class RunInSTAAttribute
	Inherits Attribute
Constructors
NameDescription
System_CAPS_pubmethod RunInSTAAttribute

Default constructor.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Properties
NameDescription
System_CAPS_pubproperty

(Inherited from Attribute.)

Methods
NameDescription
System_CAPS_pubmethod Equals

(Inherited from Attribute.)

System_CAPS_pubmethod GetHashCode

(Inherited from Attribute.)

System_CAPS_pubmethod GetType

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute

(Inherited from Attribute.)

System_CAPS_pubmethod Match

(Inherited from Attribute.)

System_CAPS_pubmethod ToString

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top