Attach Method
Collapse the table of content
Expand the table of content

IExtension<T>.Attach Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Enables an extension object to find out when it has been aggregated. Called when the extension is added to the IExtensibleObject<T>.Extensions property.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void Attach(
	T owner
)

Parameters

owner
Type: T
The extensible object that aggregates this extension.

Use this method to keep track of the IExtensibleObject<T> object to which the current instance of the extension belongs. This call gives extensions a chance to handle events or inspect properties of their owner.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft