<?xml version="1.0" encoding="utf-8"?> <Type Name="IContractBehaviorAttribute" FullName="System.ServiceModel.Description.IContractBehaviorAttribute"> <TypeSignature Language="C#" Value="public interface IContractBehaviorAttribute" /> <TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IContractBehaviorAttribute" /> <AssemblyInfo> <AssemblyName>System.ServiceModel</AssemblyName> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <Interfaces /> <Docs> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Implement the <see cref="T:System.ServiceModel.Description.IContractBehaviorAttribute" /> interface on an attribute that is also an <see cref="T:System.ServiceModel.Description.IContractBehavior" /> object to enable the use of that contract behavior attribute on a service type but restrict its application to the contract specified in the <see cref="P:System.ServiceModel.Description.IContractBehaviorAttribute.TargetContract" /> property.</para> <para>There is no requirement to implement <see cref="T:System.ServiceModel.Description.IContractBehaviorAttribute" /> on custom contract behavior attributes, and if the attribute is applied either to a contract interface or to a duplex callback class the value of the <see cref="P:System.ServiceModel.Description.IContractBehaviorAttribute.TargetContract" /> property is ignored. </para> <para>For more information, see <see cref="T:System.ServiceModel.Description.IContractBehavior" />.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Specifies the contract for which an attribute that implements the <see cref="T:System.ServiceModel.Description.IContractBehavior" /> interface is active.</para> </summary> </Docs> <Members> <Member MemberName="TargetContract"> <MemberSignature Language="C#" Value="public Type TargetContract { get; }" /> <MemberSignature Language="ILAsm" Value=".property instance class System.Type TargetContract" /> <MemberType>Property</MemberType> <AssemblyInfo> <AssemblyVersion>4.0.0.0</AssemblyVersion> </AssemblyInfo> <ReturnValue> <ReturnType>System.Type</ReturnType> </ReturnValue> <Docs> <value>To be added.</value> <remarks> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Implement the <see cref="P:System.ServiceModel.Description.IContractBehaviorAttribute.TargetContract" /> property to specify the contract to which the contract behavior is applied when the implementing <see cref="T:System.ServiceModel.Description.IContractBehavior" /> attribute is applied to a service class.</para> </remarks> <summary> <attribution license="cc4" from="Microsoft" modified="false" /> <para>Gets the type of the contract to which the contract behavior is applicable.</para> </summary> </Docs> </Member> </Members> </Type>