Skip to content

Commit 8027914

Browse files
committed
edits
1 parent a71f5c3 commit 8027914

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/azure-functions/functions-bindings-mobile-apps.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ See the language-specific example:
3838
* [C# script (.csx)](#input---c-script-example)
3939
* JavaScript
4040

41-
### Input - C# script example
41+
# [C# script](#tab/input-csharp-example)
4242

4343
The following example shows a Mobile Apps input binding in a *function.json* file and a [C# script function](functions-reference-csharp.md) that uses the binding. The function is triggered by a queue message that has a record identifier. The function reads the specified record and modifies its `Text` property.
4444

@@ -83,7 +83,7 @@ public static void Run(string myQueueItem, JObject record)
8383
}
8484
```
8585

86-
### Input - JavaScript
86+
# [JavaScript](#tab/input-javascript-example)
8787

8888
The following example shows a Mobile Apps input binding in a *function.json* file and a [JavaScript function](functions-reference-node.md) that uses the binding. The function is triggered by a queue message that has a record identifier. The function reads the specified record and modifies its `Text` property.
8989

@@ -120,6 +120,7 @@ module.exports = async function (context, myQueueItem) {
120120
context.log(context.bindings.record);
121121
};
122122
```
123+
---
123124

124125
## Input - attributes
125126

@@ -167,7 +168,7 @@ See the language-specific example:
167168
* [C# script (.csx)](#output---c-script-example)
168169
* [JavaScript](#output---javascript-example)
169170

170-
### Output - C# example
171+
# [C#](#tab/output-csharp-example)
171172

172173
The following example shows a [C# function](functions-dotnet-class-library.md) that is triggered by a queue message and creates a record in a mobile app table.
173174

@@ -182,7 +183,8 @@ public static object Run(
182183
}
183184
```
184185

185-
### Output - C# script example
186+
# [C# script](#tab/output-csharp-script-example)
187+
186188

187189
The following example shows a Mobile Apps output binding in a *function.json* file and a [C# script function](functions-reference-csharp.md) that uses the binding. The function is triggered by a queue message and creates a new record with hard-coded value for the `Text` property.
188190

@@ -223,7 +225,8 @@ public static void Run(string myQueueItem, out object record)
223225
}
224226
```
225227

226-
### Output - JavaScript example
228+
# [JavaScript](#tab/output-javascript-example)
229+
227230

228231
The following example shows a Mobile Apps output binding in a *function.json* file and a [JavaScript function](functions-reference-node.md) that uses the binding. The function is triggered by a queue message and creates a new record with hard-coded value for the `Text` property.
229232

@@ -264,13 +267,16 @@ module.exports = async function (context, myQueueItem) {
264267
}
265268
};
266269
```
267-
270+
---
268271
## Output - attributes
269272

270273
In [C# class libraries](functions-dotnet-class-library.md), use the [MobileTable](https://github.com/Azure/azure-webjobs-sdk-extensions/blob/master/src/WebJobs.Extensions.MobileApps/MobileTableAttribute.cs) attribute.
271274

272275
For information about attribute properties that you can configure, see [Output - configuration](#output---configuration). Here's a `MobileTable` attribute example in a method signature:
273276

277+
# [C#](#tab/output-attributes-csharp-example)
278+
279+
274280
```csharp
275281
[FunctionName("MobileAppsOutput")]
276282
[return: MobileTable(ApiKeySetting = "MyMobileAppKey", TableName = "MyTable", MobileAppUriSetting = "MyMobileAppUri")]
@@ -281,7 +287,7 @@ public static object Run(
281287
...
282288
}
283289
```
284-
290+
---
285291
For a complete example, see [Output - C# example](#output---c-example).
286292

287293
## Output - configuration

0 commit comments

Comments
 (0)