Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetProperty(T) Method
Collapse the table of content
Expand the table of content

HttpCookieContainerBindingElement.GetProperty<T> Method

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 override T GetProperty<T>(
	BindingContext context
)
where T : class

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 null if it is not present.

ExceptionCondition
ArgumentNullException

context is null.

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<TChannel> and catch the exception generated if it cannot be built.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft