DeliveryRequirementsAttribute::TargetContract Property

 

Gets or sets the type to which it applies.

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

public:
property Type^ TargetContract {
	virtual Type^ get() sealed;
	virtual void set(Type^ value) sealed;
}

Property Value

Type: System::Type^

The Type to which the attribute applies.

A service class can implement any number of service contract interfaces. Use the TargetContract property to validate that endpoints with the TargetContract have bindings that support the requirements. This attribute can be used any number of times on the same class.

The following code example uses the DeliveryRequirementsAttribute attribute to instruct WCF to confirm at runtime that the actual binding does not support queued contracts but does support ordered messages. It also specifies the target contract to which this restriction should be applied.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: