IExtensibleObject(T) Interface
TOC
Collapse the table of content
Expand the table of content

IExtensibleObject(Of T) Interface

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)

'Declaration
Public Interface IExtensibleObject(Of T As {Object, IExtensibleObject(Of T)})

Type Parameters

T

The type of the extension class.

The IExtensibleObject(Of T) type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneExtensionsGets a collection of extension objects for this extensible object.
Top

Implement IExtensibleObject(Of 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.

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

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

Community Additions

ADD
Show:
© 2016 Microsoft