Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IExtension(T) Interface
Collapse the table of content
Expand the table of content

IExtension<T> Interface

Enables an object to extend another object through aggregation.

Namespace:  System.ServiceModel
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

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.

  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<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<T>.Extensions property.
Top

WCF allows you to extend System.ServiceModel.IExtensibleObject<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 WCF to either extend existing run-time classes with new functionality or to add new state features to an object.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft