Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
System.ServiceModel
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
IExtension<(Of <(T>)>) Interface

Enables an object to extend another object through aggregation.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
Visual Basic
Public Interface IExtension(Of T As {Object, IExtensibleObject(Of T)})
C#
public interface IExtension<T>
where T : Object, IExtensibleObject<T>
Visual C++
generic<typename T>
where T : Object, IExtensibleObject<T>
public interface class IExtension
F#
type IExtension<'T when 'T : Object and IExtensibleObject<'T>> =  interface end

Type Parameters

T

The object that participates in the custom behavior.

The IExtension<(Of <(T>)>) type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryAttachEnables an extension object to find out when it has been aggregated. Called when the extension is added to the IExtensibleObject<(Of <(T>)>)..::.Extensions property.
Public methodSupported by Portable Class LibraryDetachEnables an object to find out when it is no longer aggregated. Called when an extension is removed from the IExtensibleObject<(Of <(T>)>)..::.Extensions property.
Top

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

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker