GetProperty(T) Method
Collapse the table of content
Expand the table of content

HttpCookieContainerBindingElement.GetProperty(Of T) Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

'Declaration
Public Overrides Function GetProperty(Of T As Class) ( _
	context As BindingContext _
) As T

Type Parameters

T

The typed object for which the method is querying.

Parameters

context
Type: System.ServiceModel.Channels.BindingContext
The BindingContext for the binding element.

Return Value

Type: T
The typed object T requested if it is present, or Nothing if it is not present.

ExceptionCondition
ArgumentNullException

context is Nothing.

Use this method if you want to check that the channel factory for channels of type TChannel can be built for the context provided before attempting to build the factory. Alternatively, build the channel factory by calling BuildChannelFactory(Of TChannel) and catch the exception generated if it cannot be built.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft