/
JustInTimeActivationAttribute.xml
165 lines (145 loc) · 9.09 KB
/
JustInTimeActivationAttribute.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<Type Name="JustInTimeActivationAttribute" FullName="System.EnterpriseServices.JustInTimeActivationAttribute">
<TypeSignature Language="C#" Value="public sealed class JustInTimeActivationAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit JustInTimeActivationAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:System.EnterpriseServices.JustInTimeActivationAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class JustInTimeActivationAttribute
Inherits Attribute" />
<TypeSignature Language="F#" Value="type JustInTimeActivationAttribute = class
 inherit Attribute" />
<TypeSignature Language="C++ CLI" Value="public ref class JustInTimeActivationAttribute sealed : Attribute" />
<AssemblyInfo>
<AssemblyName>System.EnterpriseServices</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Class, Inherited=true)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Class, Inherited=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.InteropServices.ComVisible(false)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.InteropServices.ComVisible(false)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Turns just-in-time (JIT) activation on or off. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If JIT activation is specified, then it must not be disabled in the COM+ catalog, and vice versa. If enabled in the COM+ catalog, it must be specified on the component.
JIT activation defaults to off for components which are configured in COM+, but is enabled automatically if automatic transactions are requested.
For more information about using attributes, see [Attributes](/dotnet/standard/attributes/).
## Examples
The following code example demonstrates the use of this attribute.
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Remoting/EnterpriseServices_Pooling/CPP/inspector.cpp" id="Snippet0":::
:::code language="csharp" source="~/snippets/csharp/System.EnterpriseServices/ContextUtil/ApplicationId/inspector.cs" id="Snippet0":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/EnterpriseServices_Pooling/VB/inspector.vb" id="Snippet0":::
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.EnterpriseServices</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.EnterpriseServices.JustInTimeActivationAttribute" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public JustInTimeActivationAttribute ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.EnterpriseServices.JustInTimeActivationAttribute.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 JustInTimeActivationAttribute();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.EnterpriseServices</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.EnterpriseServices.JustInTimeActivationAttribute" /> class. The parameterless constructor enables just-in-time (JIT) activation.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example creates a new <xref:System.EnterpriseServices.JustInTimeActivationAttribute>.
:::code language="csharp" source="~/snippets/csharp/System.EnterpriseServices/JustInTimeActivationAttribute/.ctor/class1.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/EnterpriseServicesJustInTimeActivationAttribute/VB/class1.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public JustInTimeActivationAttribute (bool val);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(bool val) cil managed" />
<MemberSignature Language="DocId" Value="M:System.EnterpriseServices.JustInTimeActivationAttribute.#ctor(System.Boolean)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (val As Boolean)" />
<MemberSignature Language="F#" Value="new System.EnterpriseServices.JustInTimeActivationAttribute : bool -> System.EnterpriseServices.JustInTimeActivationAttribute" Usage="new System.EnterpriseServices.JustInTimeActivationAttribute val" />
<MemberSignature Language="C++ CLI" Value="public:
 JustInTimeActivationAttribute(bool val);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.EnterpriseServices</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="val" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="val">
<see langword="true" /> to enable JIT activation; otherwise, <see langword="false" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.EnterpriseServices.JustInTimeActivationAttribute" /> class, optionally allowing the disabling of just-in-time (JIT) activation by passing <see langword="false" /> as the parameter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
JIT activation is required and `val` cannot be set to `false` if the <xref:System.EnterpriseServices.TransactionOption> value for the transaction is `Supported`, `Required`, or `RequiresNew`.
## Examples
The following code example creates a new <xref:System.EnterpriseServices.JustInTimeActivationAttribute>.
:::code language="csharp" source="~/snippets/csharp/System.EnterpriseServices/JustInTimeActivationAttribute/.ctor/class1.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/EnterpriseServicesJustInTimeActivationAttribute/VB/class1.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Value">
<MemberSignature Language="C#" Value="public bool Value { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Value" />
<MemberSignature Language="DocId" Value="P:System.EnterpriseServices.JustInTimeActivationAttribute.Value" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Value As Boolean" />
<MemberSignature Language="F#" Value="member this.Value : bool" Usage="System.EnterpriseServices.JustInTimeActivationAttribute.Value" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool Value { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.EnterpriseServices</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the value of the <see cref="T:System.EnterpriseServices.JustInTimeActivationAttribute" /> setting.</summary>
<value>
<see langword="true" /> if JIT activation is enabled; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example gets the value of a `JustInTimeActivation` attribute's <xref:System.EnterpriseServices.JustInTimeActivationAttribute.Value%2A> property.
:::code language="csharp" source="~/snippets/csharp/System.EnterpriseServices/JustInTimeActivationAttribute/.ctor/class1.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/EnterpriseServicesJustInTimeActivationAttribute/VB/class1.vb" id="Snippet3":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>