Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
generic<typename T>
where T : ref class
virtual T GetProperty(
	BindingContext^ context
) override

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:
© 2017 Microsoft