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

IExtensibleObject(Of T) Interface

 

Enable 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)

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

Type Parameters

T

The type of the extension class.

NameDescription
System_CAPS_pubpropertyExtensions

Gets a collection of extension objects for this extensible object.

Implement IExtensibleObject(Of T) to enable aggregation of extensions.

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.

There are four extensible objects in Windows Communication Foundation (WCF):

For a discussion about how to create extension to work with these objects, see Extensible Objects.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft