Share via


IExtensibleObject<T> Interface

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

Enables an object to participate in custom behavior, such as registering for events, or watching state transitions.

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

Syntax

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

Type Parameters

  • T
    The type of the extension class.

The IExtensibleObject<T> type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Extensions Gets a collection of extension objects for this extensible object.

Top

Remarks

Implement IExtensibleObject<T> to enable aggregation of extensions. System.ServiceModel.IContextChannel is an extensible object in Silverlight.

For example, if you are implementing a TreeNode class and want to allow external code to add annotations and methods to some instances of TreeNode, you can have TreeNode implement IExtensibleObject<TreeNode>. This enables code that uses TreeNode to add objects that implement IExtensibleObject<TreeNode> to the Extensions collection.

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