WebMessageEncodingBindingElement.GetProperty<T> Method (BindingContext)

 

Returns the object of the type requested, if present, from the appropriate layer in the channel stack, or null if it is not present.

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

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

Parameters

context
Type: System.ServiceModel.Channels.BindingContext

The BindingContext for the current binding element.

Return Value

Type: T

The typed object T requested if it is present or null if it is not.

Type Parameters

T

The typed object for which the method is querying.

Exception Condition
ArgumentNullException

context set is null.

This override adds one property to the base GetProperty<T>(BindingContext) implementation: when T is XmlDictionaryReaderQuotas, the ReaderQuotas property is returned.

.NET Framework
Available since 3.5
Return to top
Show: