BindingContext.GetInnerProperty<T> Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a typed object requested, if present, from the appropriate layer in the binding stack.

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

public T GetInnerProperty<T>()
where T : class

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.

Clones the binding context and calls GetProperty<T>(BindingContext) on the next binding element stored in the binding context.

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
XmlDictionaryReaderQuotas quotas = context.GetInnerProperty<XmlDictionaryReaderQuotas>();

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: