IExtension<T> Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Enables an object to extend another object through aggregation.

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

Syntax

'Declaration
Public Interface IExtension(Of T As {Object, IExtensibleObject(Of T)})
public interface IExtension<T>
where T : Object, IExtensibleObject<T>

Type Parameters

  • T
    The object that participates in the custom behavior.

The IExtension<T> type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Attach Enables an extension object to find out when it has been aggregated. Called when the extension is added to the IExtensibleObject<T>.Extensions property.
Public methodSupported by Silverlight for Windows Phone Detach Enables an object to find out when it is no longer aggregated. Called when an extension is removed from the IExtensibleObject<T>.Extensions property.

Top

Remarks

Silverlight allows you to extend System.ServiceModel.IExtensibleObject<T> objects (the System.ServiceModel.IContextChannel class) by adding a new state or behavior by using its extensible object pattern. The extensible object pattern is used in Silverlight to either extend existing run-time classes with new functionality or to add new state features to an object.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference