forked from dotnet/dotnet-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMultidimensionalArrayItemReference`1.xml
More file actions
227 lines (217 loc) · 14.1 KB
/
MultidimensionalArrayItemReference`1.xml
File metadata and controls
227 lines (217 loc) · 14.1 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<Type Name="MultidimensionalArrayItemReference<TItem>" FullName="System.Activities.Expressions.MultidimensionalArrayItemReference<TItem>">
<TypeSignature Language="C#" Value="public sealed class MultidimensionalArrayItemReference<TItem> : System.Activities.CodeActivity<System.Activities.Location<TItem>>" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit MultidimensionalArrayItemReference`1<TItem> extends System.Activities.CodeActivity`1<class System.Activities.Location`1<!TItem>>" />
<TypeSignature Language="DocId" Value="T:System.Activities.Expressions.MultidimensionalArrayItemReference`1" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class MultidimensionalArrayItemReference(Of TItem)
Inherits CodeActivity(Of Location(Of TItem))" />
<TypeSignature Language="F#" Value="type MultidimensionalArrayItemReference<'Item> = class
 inherit CodeActivity<Location<'Item>>" />
<TypeSignature Language="C++ CLI" Value="generic <typename TItem>
public ref class MultidimensionalArrayItemReference sealed : System::Activities::CodeActivity<System::Activities::Location<TItem> ^>" />
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeParameters>
<TypeParameter Name="TItem" />
</TypeParameters>
<Base>
<BaseTypeName>System.Activities.CodeActivity<System.Activities.Location<TItem>></BaseTypeName>
<BaseTypeArguments>
<BaseTypeArgument TypeParamName="TResult">System.Activities.Location<TItem></BaseTypeArgument>
</BaseTypeArguments>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Windows.Markup.ContentProperty("Indices")]</AttributeName>
<AttributeName Language="F#">[<System.Windows.Markup.ContentProperty("Indices")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<typeparam name="TItem">The type of elements in the array.</typeparam>
<summary>Represents an element in a multidimensional array that can be used as an l-value in an expression.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example uses <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> in an `Assign` activity to assign an integer value to the array element at row 1 and column 2 and prints the value of the array element to the console. The `Assign` activity is equivalent to the following statement when using arrays: `array[1, 2] = 1;`.
> [!NOTE]
> Instead of instantiating the <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601> l-value expression activity directly, it is strongly recommended that you call <xref:System.Activities.Expressions.ExpressionServices.ConvertReference%2A>, which provides a higher level of abstraction and enables you to implement your workflow more intuitively.
```csharp
public static void MultidimensionalArrayItemReferenceSample()
{
// Create a variable to store a multidimensional array.
var arrayvar = new Variable<int[,]>("arrayvar", new int[4, 5]);
Activity myActivity = new Sequence
{
Variables = { arrayvar },
Activities =
{
// Create an Assign activity to assign a value to the array item at index [1,2].
new Assign<int>
{
To = new MultidimensionalArrayItemReference<int>
{
Array = arrayvar,
Indices = {1, 2}
},
// Assign an integer value to the array item at row 1 column 2.
Value = 1,
},
// Print the array item value to the console.
new WriteLine()
{
Text = ExpressionServices.Convert<string>(ctx => arrayvar.Get(ctx)[1, 2].ToString()),
}
}
};
// Invoke the Sequence activity.
WorkflowInvoker.Invoke(myActivity);
}
```
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MultidimensionalArrayItemReference ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Expressions.MultidimensionalArrayItemReference`1.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 MultidimensionalArrayItemReference();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Activities.Expressions.MultidimensionalArrayItemReference`1" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Array">
<MemberSignature Language="C#" Value="public System.Activities.InArgument<Array> Array { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Activities.InArgument`1<class System.Array> Array" />
<MemberSignature Language="DocId" Value="P:System.Activities.Expressions.MultidimensionalArrayItemReference`1.Array" />
<MemberSignature Language="VB.NET" Value="Public Property Array As InArgument(Of Array)" />
<MemberSignature Language="F#" Value="member this.Array : System.Activities.InArgument<Array> with get, set" Usage="System.Activities.Expressions.MultidimensionalArrayItemReference<'Item>.Array" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Activities::InArgument<Array ^> ^ Array { System::Activities::InArgument<Array ^> ^ get(); void set(System::Activities::InArgument<Array ^> ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Activities.RequiredArgument]</AttributeName>
<AttributeName Language="F#">[<System.Activities.RequiredArgument>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(null)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(null)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Activities.InArgument<System.Array></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the array referenced by the <see cref="T:System.Activities.Expressions.MultidimensionalArrayItemReference`1" />.</summary>
<value>The array referenced by the <see cref="T:System.Activities.Expressions.MultidimensionalArrayItemReference`1" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CacheMetadata">
<MemberSignature Language="C#" Value="protected override void CacheMetadata (System.Activities.CodeActivityMetadata metadata);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void CacheMetadata(valuetype System.Activities.CodeActivityMetadata metadata) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Expressions.MultidimensionalArrayItemReference`1.CacheMetadata(System.Activities.CodeActivityMetadata)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Sub CacheMetadata (metadata As CodeActivityMetadata)" />
<MemberSignature Language="F#" Value="override this.CacheMetadata : System.Activities.CodeActivityMetadata -> unit" Usage="multidimensionalArrayItemReference.CacheMetadata metadata" />
<MemberSignature Language="C++ CLI" Value="protected:
 override void CacheMetadata(System::Activities::CodeActivityMetadata metadata);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="metadata" Type="System.Activities.CodeActivityMetadata" />
</Parameters>
<Docs>
<param name="metadata">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Execute">
<MemberSignature Language="C#" Value="protected override System.Activities.Location<TItem> Execute (System.Activities.CodeActivityContext context);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.Activities.Location`1<!TItem> Execute(class System.Activities.CodeActivityContext context) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.Expressions.MultidimensionalArrayItemReference`1.Execute(System.Activities.CodeActivityContext)" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function Execute (context As CodeActivityContext) As Location(Of TItem)" />
<MemberSignature Language="F#" Value="override this.Execute : System.Activities.CodeActivityContext -> System.Activities.Location<'Item>" Usage="multidimensionalArrayItemReference.Execute context" />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::Activities::Location<TItem> ^ Execute(System::Activities::CodeActivityContext ^ context);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Activities.Location<TItem></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="System.Activities.CodeActivityContext" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Indices">
<MemberSignature Language="C#" Value="public System.Collections.ObjectModel.Collection<System.Activities.InArgument<int>> Indices { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.ObjectModel.Collection`1<class System.Activities.InArgument`1<int32>> Indices" />
<MemberSignature Language="DocId" Value="P:System.Activities.Expressions.MultidimensionalArrayItemReference`1.Indices" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Indices As Collection(Of InArgument(Of Integer))" />
<MemberSignature Language="F#" Value="member this.Indices : System.Collections.ObjectModel.Collection<System.Activities.InArgument<int>>" Usage="System.Activities.Expressions.MultidimensionalArrayItemReference<'Item>.Indices" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Collections::ObjectModel::Collection<System::Activities::InArgument<int> ^> ^ Indices { System::Collections::ObjectModel::Collection<System::Activities::InArgument<int> ^> ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(null)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(null)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.ObjectModel.Collection<System.Activities.InArgument<System.Int32>></ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of arguments that represent the indices of the element in the array.</summary>
<value>The indices of the element in the array.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Activities.Expressions.MultidimensionalArrayItemReference%601.Indices> property is read-only, but the items in the collection can be modified and the indices can be changed.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>