Skip to content

Commit 999320f

Browse files
committed
remove broken links
1 parent 651ae50 commit 999320f

33 files changed

+365
-551
lines changed

xml/System.Threading.Tasks/TaskCompletionSource`1.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@
7474
<format type="text/markdown"><![CDATA[
7575
7676
## Remarks
77-
In many scenarios, it is useful to enable a <xref:System.Threading.Tasks.Task%601> to represent an external asynchronous operation. <xref:System.Threading.Tasks.TaskCompletionSource%601> is provided for this purpose. It enables the creation of a task that can be handed out to consumers. The consumers can use the members of the task the same way as they would in any other scenario handling task member variables. However, unlike most tasks, the state of a task created by a TaskCompletionSource is controlled explicitly by the methods on TaskCompletionSource. This enables the completion of the external asynchronous operation to be propagated to the underlying Task. The separation also ensures that consumers are not able to transition the state without access to the corresponding TaskCompletionSource. For more information, see the entry [The Nature of TaskCompletionSource\<TResult>](https://devblogs.microsoft.com/pfxteam/the-nature-of-taskcompletionsourcetresult/) in the Parallel Programming with .NET blog.
78-
79-
The [Parallel Extensions samples](https://go.microsoft.com/fwlink/?LinkID=165717) also contain examples of how to use <xref:System.Threading.Tasks.TaskCompletionSource%601>.
80-
8177
78+
In many scenarios, it's useful to enable a <xref:System.Threading.Tasks.Task%601> to represent an external asynchronous operation. <xref:System.Threading.Tasks.TaskCompletionSource%601> is provided for this purpose. It enables the creation of a task that can be handed out to consumers. The consumers can use the members of the task the same way as they would in any other scenario handling task member variables. However, unlike most tasks, the state of a task created by a TaskCompletionSource is controlled explicitly by the methods on TaskCompletionSource. This enables the completion of the external asynchronous operation to be propagated to the underlying Task. The separation also ensures that consumers are not able to transition the state without access to the corresponding TaskCompletionSource. For more information, see the entry [The Nature of TaskCompletionSource\<TResult>](https://devblogs.microsoft.com/pfxteam/the-nature-of-taskcompletionsourcetresult/) in the Parallel Programming with .NET blog.
8279
8380
## Examples
81+
8482
The following example shows how to use a <xref:System.Threading.Tasks.TaskCompletionSource%601>:
8583
8684
:::code language="csharp" source="~/snippets/csharp/System.Threading.Tasks/TaskCompletionSourceTResult/Overview/taskcompletionsource.cs" id="Snippet01":::

xml/System.Web.DynamicData/DynamicFilter.xml

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,11 @@
2828
<format type="text/markdown"><![CDATA[
2929
3030
## Remarks
31-
In this topic:
31+
In this article:
3232
33-
- [Introduction](#introduction)
34-
35-
- [ClassContext](#ClassContext)
36-
37-
- [Declarative Syntax](#DeclarativeSyntax)
33+
- [Introduction](#introduction)
34+
- [ClassContext](#ClassContext)
35+
- [Declarative Syntax](#DeclarativeSyntax)
3836
3937
<a name="introduction"></a>
4038
## Introduction
@@ -51,7 +49,6 @@
5149
You can specify the filter template to use in the following ways:
5250
5351
- By using the <xref:System.Web.DynamicData.DynamicFilter.FilterUIHint%2A> property in page markup. This approach is a presentation-layer customization, which is independent of the schema (database), and which applies to a single page.
54-
5552
- By using the <xref:System.ComponentModel.DataAnnotations.FilterUIHintAttribute> attribute in the model. This approach is a data-layer customization, which depends on the specific schema (database), and which applies to the entire application.
5653
5754
If you use both approaches, the filter template that is specified in the markup takes precedence over the template that is specified in the data model.
@@ -62,46 +59,37 @@
6259
6360
The following figure shows the steps that Dynamic Data follows in order to implement table row filtering by a foreign-key column.
6461
65-
![Dynamic Data Query Elements](~/add/media/dynamic-dataquery.png "Dynamic Data Query Elements")
66-
67-
1. The <xref:System.Web.DynamicData.DynamicFilter> control passes the selected value to the <xref:System.Web.UI.WebControls.QueryExtender> control.
68-
69-
2. The <xref:System.Web.UI.WebControls.QueryExtender> control uses the value to create the query filtering information. It then passes this information to the data source control.
70-
71-
3. The data source control passes the filtering query information to the data source provider.
62+
![Dynamic Data Query Elements](~/add/media/dynamic-dataquery.png)
7263
73-
4. The data source provider passes the query to the database.
74-
75-
5. The database returns the filtered table rows.
76-
77-
6. The data source provider sends this data back to the data source control.
78-
79-
7. The data source control passes the filtered table rows to the data-bound control for display.
64+
1. The <xref:System.Web.DynamicData.DynamicFilter> control passes the selected value to the <xref:System.Web.UI.WebControls.QueryExtender> control.
65+
2. The <xref:System.Web.UI.WebControls.QueryExtender> control uses the value to create the query filtering information. It then passes this information to the data source control.
66+
3. The data source control passes the filtering query information to the data source provider.
67+
4. The data source provider passes the query to the database.
68+
5. The database returns the filtered table rows.
69+
6. The data source provider sends this data back to the data source control.
70+
7. The data source control passes the filtered table rows to the data-bound control for display.
8071
8172
<a name="DeclarativeSyntax"></a>
8273
## Declarative Syntax
8374
84-
```
75+
```xml
8576
<asp:DynamicFilter
86-
    ID="Control ID"
87-
    DataField="Name of the data field to use for filtering"
88-
    EnableViewState="True|False"
89-
    FilterUIHint="Name of the filter template to generate the UI"
90-
    OnFilterChanged="Filter changed event handler"
91-
    OnDataBinding="DataBinding event handler"
92-
    OnDisposed="Disposed event handler"
93-
    OnInit="Init event handler"
94-
    OnLoad="Load event handler"
95-
    OnPreRender="PreRender event handler"
96-
    OnUnload="Unload event handler"
97-
    Visible="True|False"
98-
    runat="server"/>
77+
ID="Control ID"
78+
DataField="Name of the data field to use for filtering"
79+
EnableViewState="True|False"
80+
FilterUIHint="Name of the filter template to generate the UI"
81+
OnFilterChanged="Filter changed event handler"
82+
OnDataBinding="DataBinding event handler"
83+
OnDisposed="Disposed event handler"
84+
OnInit="Init event handler"
85+
OnLoad="Load event handler"
86+
OnPreRender="PreRender event handler"
87+
OnUnload="Unload event handler"
88+
Visible="True|False"
89+
runat="server"/>
9990
```
10091
101-
102-
10392
## Examples
104-
A Visual Studio project with source code is available at this location: [Download](https://go.microsoft.com/fwlink/?LinkId=168914).
10593
10694
The following examples use the default ForeignKey.ascx filter template to create the UI for filtering the Products table rows by the ProductCategory foreign-key column. When the user selects a ProductCategory value, only the rows that contain that value are displayed.
10795

xml/System.Web.DynamicData/DynamicHyperLink.xml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
<format type="text/markdown"><![CDATA[
3434
3535
## Remarks
36-
In this topic:
36+
In this article:
3737
3838
- [Introduction](#introduction)
39-
4039
- [Declarative Syntax](#declarative_syntax)
4140
4241
<a name="introduction"></a>
@@ -46,31 +45,26 @@
4645
The <xref:System.Web.DynamicData.DynamicHyperLink> control enables you to create the following links:
4746
4847
- Table row data-bound links, which are for data-item specific action links such as "Edit" and "Details". Dynamic Data infers the table and the primary key from the current row. An example of these links is in the Edit.aspx page of a Dynamic Data Web site.
49-
5048
- Links to <xref:System.Web.DynamicData.MetaTable> objects, which are specific action links such as "List" and "Insert" that in turn point to objects such as tables. An example of these links is in the Default.aspx page of a Dynamic Data Web site.
51-
5249
- Unbound links, which create table action links outside a data-bound control. An example of these links is in the Insert link in the List.aspx page template of a Dynamic Data Web site. Because these links are not part of a data-bound control that has a defined data context, you must specify the table to access and the action to perform. If you specify "Edit" or "Details" as the action, you must also provide the primary key.
5350
5451
The <xref:System.Web.DynamicData.DynamicHyperLink> control supports additional markup attributes then can be forwarded to the routing engine when the link is activated. This can be useful when you want to have an item-specific link from a non-data-bound context.
5552
5653
<a name="declarative_syntax"></a>
5754
## Declarative Syntax
5855
59-
```
56+
```xml
6057
<asp:DynamicHyperlink
61-
    ID="string"
62-
    Action="Details|Edit|Insert|List"
63-
    ContextTypeName="string"
64-
    DataField="string"
65-
    TableName="string"
66-
    OnDataBinding="DataBinding event handler"
67-
    OnPreRender="PreRender event handler"/>
58+
ID="string"
59+
Action="Details|Edit|Insert|List"
60+
ContextTypeName="string"
61+
DataField="string"
62+
TableName="string"
63+
OnDataBinding="DataBinding event handler"
64+
OnPreRender="PreRender event handler"/>
6865
```
6966
70-
71-
7267
## Examples
73-
A Visual Studio project with source code is available to accompany this topic: [Scaffolding Dynamic Data](https://go.microsoft.com/fwlink/?LinkId=168914).
7468
7569
The following examples show how to create <xref:System.Web.DynamicData.DynamicHyperLink> controls for data rows, for a collection, and to perform the specified action.
7670

xml/System.Web.DynamicData/DynamicRouteExpression.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,21 @@
2626
<a name="DeclarativeSyntax"></a>
2727
## Declarative Syntax
2828
29-
```
29+
```xml
3030
<asp:DynamicRouteExpression
31-
  ColumnName="Name of the foreign key column"/>
31+
ColumnName="Name of the foreign key column"/>
3232
```
3333
34-
35-
3634
## Examples
37-
A Visual Studio project with source code is available to accompany this topic: [Scaffolding Dynamic Data](https://go.microsoft.com/fwlink/?LinkId=168914).
3835
3936
The following example shows a custom List.aspx page template for the Products table. It uses the <xref:System.Web.DynamicData.DynamicRouteExpression.ColumnName%2A> property to specify the ProductCategory foreign key for filtering the Products rows.
4037
4138
The custom List.aspx page displays a column that contains links of the categories that are contained by the ProductCategory foreign-key column. When the user clicks one of these links, the List.aspx page displays only the rows that contain the selected category.
4239
4340
The example requires the following:
4441
45-
- A Dynamic Data Web site. For more information, see [Walkthrough: Creating a New Dynamic Data Web Site Using Scaffolding](https://msdn.microsoft.com/library/1564aef2-9103-436a-9806-c8ad7abd616a).
46-
47-
- The AdventureWorksLT sample database. For more information, see [How to: Connect to the AdventureWorksLT Database using an .MDF File](https://msdn.microsoft.com/library/d34ffbac-607d-40f1-b088-0a3304ea032b).
42+
- A Dynamic Data Web site. For more information, see [Walkthrough: Creating a New Dynamic Data Web Site Using Scaffolding](https://learn.microsoft.com/previous-versions/cc488469(v=vs.140)).
43+
- The AdventureWorksLT sample database.
4844
4945
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/system.web.dynamicdata.dynamicrouteexpression/cs/list.aspx" id="Snippet1":::
5046
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/system.web.dynamicdata.dynamicrouteexpression/vb/list.aspx" id="Snippet1":::

xml/System.Web.DynamicData/QueryableFilterRepeater.xml

Lines changed: 22 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@
3838
<format type="text/markdown"><![CDATA[
3939
4040
## Remarks
41-
In this topic:
41+
In this article:
4242
4343
- [Introduction](#introduction)
44-
4544
- [Class Context](#ClassContext)
46-
4745
- [Declarative Syntax](#DeclarativeSyntax)
4846
4947
<a name="introduction"></a>
@@ -65,50 +63,39 @@
6563
6664
The following figure shows the steps that Dynamic Data follows in order to implement automatic table row filtering.
6765
68-
![Dynamic Data Table Row Filtering Elements](~/add/media/dynamic-autofilter.png "Dynamic Data Table Row Filtering Elements")
69-
70-
1. The <xref:System.Web.DynamicData.DynamicFilter> controls (which are contained in the <xref:System.Web.DynamicData.QueryableFilterRepeater> control), pass a column value to the <xref:System.Web.UI.WebControls.QueryExtender> control.
71-
72-
2. The <xref:System.Web.UI.WebControls.QueryExtender> control uses this value to create the query filtering information, which it then passes to the data source control.
73-
74-
3. The data source control passes the query filtering information to the data source provider.
75-
76-
4. The data source provider passes the query to the database.
66+
![Dynamic Data Table Row Filtering Elements](~/add/media/dynamic-autofilter.png)
7767
78-
5. The database returns the filtered table rows.
79-
80-
6. The data source provider sends this data back to the data source control.
81-
82-
7. This control passes the filtered table rows to the data-bound control for display.
68+
1. The <xref:System.Web.DynamicData.DynamicFilter> controls (which are contained in the <xref:System.Web.DynamicData.QueryableFilterRepeater> control), pass a column value to the <xref:System.Web.UI.WebControls.QueryExtender> control.
69+
2. The <xref:System.Web.UI.WebControls.QueryExtender> control uses this value to create the query filtering information, which it then passes to the data source control.
70+
3. The data source control passes the query filtering information to the data source provider.
71+
4. The data source provider passes the query to the database.
72+
5. The database returns the filtered table rows.
73+
6. The data source provider sends this data back to the data source control.
74+
7. This control passes the filtered table rows to the data-bound control for display.
8375
8476
<a name="DeclarativeSyntax"></a>
8577
## Declarative Syntax
8678
87-
```
79+
```xml
8880
<asp:QueryableFilterRepeater
89-
    ID="string"
90-
    DynamicFilterContainerId="string"
91-
    EnableViewState="True|False"
92-
    OnDataBinding="DataBinding event handler"
93-
    OnDisposed="Disposed event handler"
94-
    OnInit="Init event handler"
95-
    OnLoad="Load event handler"
96-
    OnPreRender="PreRender event handler"
97-
    OnUnload="Unload event handler"
98-
    Visible="true"
99-
    runat="server" />
81+
ID="string"
82+
DynamicFilterContainerId="string"
83+
EnableViewState="True|False"
84+
OnDataBinding="DataBinding event handler"
85+
OnDisposed="Disposed event handler"
86+
OnInit="Init event handler"
87+
OnLoad="Load event handler"
88+
OnPreRender="PreRender event handler"
89+
OnUnload="Unload event handler"
90+
Visible="true"
91+
runat="server" />
10092
```
10193
102-
103-
10494
## Examples
105-
A Visual Studio project with source code is available at this location: [Scaffolding Dynamic Data](https://go.microsoft.com/fwlink/?LinkId=168914).
10695
10796
The following example shows how to use the <xref:System.Web.DynamicData.QueryableFilterRepeater> control to generate the UI for table row filtering. The repeater's item template contains a <xref:System.Web.DynamicData.DynamicFilter> control that creates the UI for each supported column type.
10897
109-
The example requires the following:
110-
111-
- A Dynamic Data Web site or a Dynamic Data Web application. For more information, see `Walkthrough: Creating a New Dynamic Data Web Site using Scaffolding`.
98+
The example requires a Dynamic Data Web site or a Dynamic Data Web application. For more information, see `Walkthrough: Creating a New Dynamic Data Web Site using Scaffolding`.
11299
113100
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/system.web.dynamicdata.queryablefilterrepeater/cs/queryablefilterrepeater.aspx" id="Snippet1":::
114101
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/system.web.dynamicdata.queryablefilterrepeater/vb/queryablefilterrepeater.aspx" id="Snippet1":::

0 commit comments

Comments
 (0)