Skip to content

Commit e9ab159

Browse files
author
Colin Robertson
committed
Link reports
1 parent cdbe426 commit e9ab159

14 files changed

Lines changed: 130 additions & 147 deletions

docs/cppcx/platform-agile-class.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Represents an object that has a MashalingBehavior=Standard as an agile object, w
2626
## Syntax
2727

2828
```cpp
29-
3029
template <typename T>
3130
class Agile;
3231
```
@@ -154,7 +153,7 @@ throw();
154153
The address of a handle to an object of type `T`.
155154

156155
### Remarks
157-
This operation releases the current representation of a object of type `T`, if any; reinitializes the Agile object's data members; acquires the current threading context; and then returns the address of a handle-to-object variable that can represent a non-agile object. To cause an Agile class instance to represent an object, use the assignment operator ([Agile::operator=](../cppcx/agile-operator-assign-operator.md)) to assign the object to the Agile class instance.
156+
This operation releases the current representation of a object of type `T`, if any; reinitializes the Agile object's data members; acquires the current threading context; and then returns the address of a handle-to-object variable that can represent a non-agile object. To cause an Agile class instance to represent an object, use the assignment operator ([Agile::operator=](#operator-assign)) to assign the object to the Agile class instance.
158157

159158
## <a name="getaddressofforinput"></a> Agile::GetAddressOfForInOut Method
160159
Returns the address of a handle to the object represented by the current Agile object.

docs/cppcx/platform-delegate-class.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
---
2-
title: "Platform::Delegate Class | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "12/30/2016"
1+
---
2+
title: "Platform::Delegate Class | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "language-reference"
11-
f1_keywords:
12-
- "Platform/Platform::Delegate"
13-
dev_langs:
14-
- "C++"
15-
helpviewer_keywords:
16-
- "Platform::Delegate Class"
17-
ms.assetid: 82b21271-768f-4193-9ca2-be68ddfd546e
18-
caps.latest.revision: 5
19-
author: "ghogen"
20-
ms.author: "ghogen"
21-
manager: "ghogen"
22-
---
23-
# Platform::Delegate Class
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "language-reference"
11+
f1_keywords:
12+
- "Platform/Platform::Delegate"
13+
dev_langs:
14+
- "C++"
15+
helpviewer_keywords:
16+
- "Platform::Delegate Class"
17+
ms.assetid: 82b21271-768f-4193-9ca2-be68ddfd546e
18+
caps.latest.revision: 5
19+
author: "ghogen"
20+
ms.author: "ghogen"
21+
manager: "ghogen"
22+
---
23+
# Platform::Delegate Class
2424
Represents a function object.
2525

2626
## Syntax
@@ -33,7 +33,7 @@ public delegate void delegate_name();
3333
The Delegate class has the Equals(), GetHashCode(), and ToString() methods derived from the [Platform::Object Class](../cppcx/platform-object-class.md).
3434

3535
### Remarks
36-
Use the [delegate](../Topic/delegate%20%20\(C++%20Component%20Extensions\).md) keyword to create delegates; do not use Platform::Delegate explicitly. For more information, see [Delegates](../cppcx/delegates-c-cx.md). For an example of how to create and consume a delegate, see [Creating Windows Runtime Components in C++](/MicrosoftDocs/windows-uwp/blob/docs/windows-apps-src/winrt-components/creating-windows-runtime-components-in-cpp.md).
36+
Use the [delegate](../windows/delegate-cpp-component-extensions.md) keyword to create delegates; do not use Platform::Delegate explicitly. For more information, see [Delegates](../cppcx/delegates-c-cx.md). For an example of how to create and consume a delegate, see [Creating Windows Runtime Components in C++](/MicrosoftDocs/windows-uwp/blob/docs/windows-apps-src/winrt-components/creating-windows-runtime-components-in-cpp.md).
3737

3838
### Requirements
3939
**Minimum supported client:** [!INCLUDE[win8](../cppcx/includes/win8-md.md)]

docs/cppcx/platform-metadata-attribute-attribute.md

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,39 @@
1-
---
2-
title: "Platform::Metadata::Attribute Attribute | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "12/30/2016"
1+
---
2+
title: "Platform::Metadata::Attribute Attribute | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "language-reference"
11-
f1_keywords:
12-
- "Platform/Platform::Metadata::Attribute"
13-
dev_langs:
14-
- "C++"
15-
helpviewer_keywords:
16-
- "Platform::Metadata::Attribute Attribute"
17-
ms.assetid: 0e69727f-429b-4f7d-85c6-eea614f14dd7
18-
caps.latest.revision: 3
19-
author: "ghogen"
20-
ms.author: "ghogen"
21-
manager: "ghogen"
22-
---
23-
# Platform::Metadata::Attribute Attribute
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "language-reference"
11+
f1_keywords:
12+
- "Platform/Platform::Metadata::Attribute"
13+
dev_langs:
14+
- "C++"
15+
helpviewer_keywords:
16+
- "Platform::Metadata::Attribute Attribute"
17+
ms.assetid: 0e69727f-429b-4f7d-85c6-eea614f14dd7
18+
caps.latest.revision: 3
19+
author: "ghogen"
20+
ms.author: "ghogen"
21+
manager: "ghogen"
22+
---
23+
# Platform::Metadata::Attribute Attribute
2424
Represents the base class for all attributes.
2525

2626
## Syntax
2727

2828
```cpp
29-
3029
public ref class Attribute abstract : Object
3130
```
3231
3332
## Inheritance
34-
[Platform::Object](../cppcx/object-object-constructor.md)
33+
[Platform::Object](../cppcx/platform-object-class.md)
3534
3635
[Platform::Metadata::Attribute](../cppcx/platform-metadata-attribute-attribute.md)
3736
38-
### Remarks
39-
4037
### Requirements
4138
**Minimum supported client:** [!INCLUDE[win8](../cppcx/includes/win8-md.md)]
4239

docs/cppcx/platform-metadata-defaultmemberattribute-attribute.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
---
2-
title: "Platform::Metadata::DefaultMemberAttribute Attribute | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "12/30/2016"
1+
---
2+
title: "Platform::Metadata::DefaultMemberAttribute Attribute | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "language-reference"
11-
f1_keywords:
12-
- "Platform/Platform::Metadata::DefaultMemberAttribute"
13-
dev_langs:
14-
- "C++"
15-
helpviewer_keywords:
16-
- "Platform::Metadata::DefaultMemberAttribute Attribute"
17-
ms.assetid: d8abda01-c257-4371-aec4-541d4825e0af
18-
caps.latest.revision: 4
19-
author: "ghogen"
20-
ms.author: "ghogen"
21-
manager: "ghogen"
22-
---
23-
# Platform::Metadata::DefaultMemberAttribute Attribute
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "language-reference"
11+
f1_keywords:
12+
- "Platform/Platform::Metadata::DefaultMemberAttribute"
13+
dev_langs:
14+
- "C++"
15+
helpviewer_keywords:
16+
- "Platform::Metadata::DefaultMemberAttribute Attribute"
17+
ms.assetid: d8abda01-c257-4371-aec4-541d4825e0af
18+
caps.latest.revision: 4
19+
author: "ghogen"
20+
ms.author: "ghogen"
21+
manager: "ghogen"
22+
---
23+
# Platform::Metadata::DefaultMemberAttribute Attribute
2424
Indicates the preferred function to invoke among several possible overloaded functions.
2525

2626
## Syntax
@@ -31,7 +31,7 @@ public ref class DefaultMember abstract : Attribute
3131
```
3232
3333
## Inheritance
34-
[Platform::Object](../cppcx/object-object-constructor.md)
34+
[Platform::Object](../cppcx/platform-object-class.md)
3535
3636
[Platform::Metadata::Attribute](../cppcx/platform-metadata-attribute-attribute.md)
3737

docs/cppcx/platform-metadata-flagsattribute-attribute.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
---
2-
title: "Platform::Metadata::FlagsAttribute Attribute | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "12/30/2016"
1+
---
2+
title: "Platform::Metadata::FlagsAttribute Attribute | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "language-reference"
11-
f1_keywords:
12-
- "Platform/Platform::Metadata::FlagsAttribute"
13-
dev_langs:
14-
- "C++"
15-
helpviewer_keywords:
16-
- "Platform::Metadata::FlagsAttribute Attribute"
17-
ms.assetid: 56f4a191-cc81-4742-aff8-bd2219c0735c
18-
caps.latest.revision: 3
19-
author: "ghogen"
20-
ms.author: "ghogen"
21-
manager: "ghogen"
22-
---
23-
# Platform::Metadata::FlagsAttribute Attribute
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "language-reference"
11+
f1_keywords:
12+
- "Platform/Platform::Metadata::FlagsAttribute"
13+
dev_langs:
14+
- "C++"
15+
helpviewer_keywords:
16+
- "Platform::Metadata::FlagsAttribute Attribute"
17+
ms.assetid: 56f4a191-cc81-4742-aff8-bd2219c0735c
18+
caps.latest.revision: 3
19+
author: "ghogen"
20+
ms.author: "ghogen"
21+
manager: "ghogen"
22+
---
23+
# Platform::Metadata::FlagsAttribute Attribute
2424
Indicates that an enumeration can be treated as a bit field; that is, a set of flags.
2525

2626
## Syntax
@@ -31,7 +31,7 @@ public ref class Flags abstract : Attribute
3131
```
3232
3333
## Inheritance
34-
[Platform::Object](../cppcx/object-object-constructor.md)
34+
[Platform::Object](../cppcx/platform-object-class.md)
3535
3636
[Platform::Metadata::Attribute](../cppcx/platform-metadata-attribute-attribute.md)
3737

docs/cppcx/platform-weakreference-class.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,11 @@ WeakReference& operator=(decltype(__nullptr));
6161
WeakReference& operator=(const WeakReference& otherArg);
6262
WeakReference& operator=(WeakReference&& otherArg);
6363
WeakReference& operator=(const volatile ::Platform::Object^ const otherArg);
64-
6564
```
6665

6766
### Remarks
68-
The last overload in the list above enables you to assign a ref class to a WeakReference variable. In this case the ref class is downcast to [Platform::Object](../cppcx/platform-object-class.md)^. You restore the original type later by specifying it as the argument for the type parameter in the [WeakReference::Resolve\<T>](../cppcx/weakreference-resolve-method-platform-namespace.md) member function.
67+
The last overload in the list above enables you to assign a ref class to a WeakReference variable. In this case the ref class is downcast to [Platform::Object](../cppcx/platform-object-class.md)^. You restore the original type later by specifying it as the argument for the type parameter in the [WeakReference::Resolve\<T>](#resolve) member function.
6968

70-
71-
7269
## <a name="booltype"></a> WeakReference::operator BoolType
7370
Implements the safe bool pattern for the WeakReference class. Not to be called explicitly from your code.
7471

docs/cppcx/ref-classes-and-structs-c-cx.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
---
2-
title: "Ref classes and structs (C++/CX) | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/22/2017"
1+
---
2+
title: "Ref classes and structs (C++/CX) | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "article"
11-
ms.assetid: 3d736b82-0bf0-48cf-bac1-cc9d110b70d1
12-
caps.latest.revision: 42
13-
author: "ghogen"
14-
ms.author: "ghogen"
15-
manager: "ghogen"
16-
---
17-
# Ref classes and structs (C++/CX)
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "article"
11+
ms.assetid: 3d736b82-0bf0-48cf-bac1-cc9d110b70d1
12+
caps.latest.revision: 42
13+
author: "ghogen"
14+
ms.author: "ghogen"
15+
manager: "ghogen"
16+
---
17+
# Ref classes and structs (C++/CX)
1818
The C++/CX supports user-defined *ref classes* and *ref structs*, and user-defined *value classes* and *value structs*. These data structures are the primary containers by which C++/CX supports the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] type system. Their contents are emitted to metadata according to certain specific rules, and this enables them to be passed between [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] components and Universal Windows Platform apps that are written in C++ or other languages.
1919

2020
A ref class or ref struct has these essential features:
@@ -98,7 +98,7 @@ The C++/CX supports user-defined *ref classes* and *ref structs*, and user-defin
9898
When you declare a public destructor, the compiler generates the code so that the ref class implements `Platform::IDisposable` and the destructor implements the `Dispose` method. `Platform::IDisposable` is the C++/CX projection of `Windows::Foundation::IClosable`. Never explicitly implement these interfaces.
9999

100100
## Inheritance
101-
Platform::Object is the universal base class for all ref classes. All ref classes are implicitly convertible to Platform::Object and can override [Object::ToString](../cppcx/object-tostring-method-c-cx.md). However, the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] inheritance model not intended as a general inheritance model; in C++/CX this means that a user-defined public ref class cannot serve as a base class.
101+
Platform::Object is the universal base class for all ref classes. All ref classes are implicitly convertible to Platform::Object and can override [Object::ToString](../cppcx/platform-object-class.md#tostring). However, the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] inheritance model not intended as a general inheritance model; in C++/CX this means that a user-defined public ref class cannot serve as a base class.
102102

103103
If you are creating a XAML user control, and the object participates in the dependency property system, then you can use `Windows::UI::Xaml::DependencyObject` as a base class.
104104

docs/cppcx/type-system-c-cx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ By using the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] architecture, you can
8686

8787
- Can contain private nested enum, struct, or class definitions.
8888

89-
- Can directly inherit from one base class and can implement any number of interfaces. All ref classes are implicitly convertible to the [Platform::Object Class](../cppcx/platform-object-class.md) and can override its virtual methods—for example, [Object::ToString](../cppcx/object-tostring-method-c-cx.md).
89+
- Can directly inherit from one base class and can implement any number of interfaces. All ref classes are implicitly convertible to the [Platform::Object Class](../cppcx/platform-object-class.md) and can override its virtual methods—for example, [Object::ToString](../cppcx/platform-object-class.md#tostring).
9090

9191
A ref class that has a public constructor must be declared as sealed, to prevent further derivation.
9292

docs/cppcx/weak-references-and-breaking-cycles-c-cx.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
---
2-
title: "Weak references and breaking cycles (C++/CX) | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "01/22/2017"
1+
---
2+
title: "Weak references and breaking cycles (C++/CX) | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
6-
ms.technology: ""
7-
ms.reviewer: ""
8-
ms.suite: ""
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "article"
11-
ms.assetid: 1acb6402-05f0-4951-af94-0e9dab41c53e
12-
caps.latest.revision: 12
13-
author: "ghogen"
14-
ms.author: "ghogen"
15-
manager: "ghogen"
16-
---
17-
# Weak references and breaking cycles (C++/CX)
18-
In any type system that's based on reference-counting, references to types can form *cycles*—that is, one object refers to a second object, the second object refers to a third object, and so on until some final object refers back to the first object. In a cycle, objects can't be deleted correctly when one object's reference count becomes zero. To help you solve this problem, C++/CX provides the [Platform::WeakReference Class](../cppcx/platform-weakreference-class.md) class. A `WeakReference` object supports the [Resolve](../cppcx/weakreference-resolve-method-platform-namespace.md) method, which returns null if the object no longer exists, or throws an [Platform::InvalidCastException](../cppcx/platform-invalidcastexception-class.md) if the object is alive but is not of type `T`.
6+
ms.technology: ""
7+
ms.reviewer: ""
8+
ms.suite: ""
9+
ms.tgt_pltfrm: ""
10+
ms.topic: "article"
11+
ms.assetid: 1acb6402-05f0-4951-af94-0e9dab41c53e
12+
caps.latest.revision: 12
13+
author: "ghogen"
14+
ms.author: "ghogen"
15+
manager: "ghogen"
16+
---
17+
# Weak references and breaking cycles (C++/CX)
18+
In any type system that's based on reference-counting, references to types can form *cycles*—that is, one object refers to a second object, the second object refers to a third object, and so on until some final object refers back to the first object. In a cycle, objects can't be deleted correctly when one object's reference count becomes zero. To help you solve this problem, C++/CX provides the [Platform::WeakReference Class](../cppcx/platform-weakreference-class.md) class. A `WeakReference` object supports the [Resolve](../cppcx/platform-weakreference-class.md#resolve) method, which returns null if the object no longer exists, or throws an [Platform::InvalidCastException](../cppcx/platform-invalidcastexception-class.md) if the object is alive but is not of type `T`.
1919

2020
One scenario in which `WeakReference` must be used is when the `this` pointer is captured in a lambda expression that's used to define an event handler. We recommend that you use named methods when you define event handlers, but if you want to use a lambda for your event handler—or if you have to break a reference counting cycle in some other situation—use `WeakReference`. Here's an example:
2121

docs/data/mfc-database-classes-odbc-and-dao.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ translation.priority.ht:
4444

4545
- [ODBC and MFC](../data/odbc/odbc-and-mfc.md)
4646

47-
- [MFC Database Documentation](../data/mfc-database-documentation.md)
48-
4947
- [Using Database Classes with Documents and Views](../data/mfc-using-database-classes-with-documents-and-views.md)
5048

5149
- [Using Database Classes Without Documents and Views](../data/mfc-using-database-classes-without-documents-and-views.md)

0 commit comments

Comments
 (0)