OneWayBindingElement.GetProperty<T> Method (BindingContext)


Gets properties from the binding stack, if present.

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

public override T GetProperty<T>(
	BindingContext context
where T : class


Type: System.ServiceModel.Channels.BindingContext

The BindingContext that provides context for the binding element.

Return Value

Type: T

A T object from the binding stack, if present.

Type Parameters


Type of the property.

This method receives a binding context as an input parameter, which represents the stack of binding elements.

Each binding element in the stack can handle the inquiry itself or delegate the inquiry, or a combination of the two. Each binding element can modify the context if it delegates the inquiry. However, a transport binding element handles the inquiry itself.

This method is implemented by binding elements as well as by the runtime objects, such as IChannelFactory, IChannelListener, and IChannel.

.NET Framework
Available since 3.0
Return to top