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.
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: TThe typed object T requested if it is present, or Nothing if it is not present.
| Exception | Condition |
|---|---|
| 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.