CallbackBehaviorAttribute Constructor ()
Initializes a new instance of the CallbackBehaviorAttribute class.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The default settings for the CallbackBehaviorAttribute are:
The AutomaticSessionShutdown property is true.
The ConcurrencyMode is set to Single.
The IgnoreExtensionDataObject property is false.
IncludeExceptionDetailInFaults is false.
UseSynchronizationContext is false.
The ValidateMustUnderstand property is true.
The following code example shows a CallbackBehaviorAttribute on a callback object that uses the SynchronizationContext object to determine which thread to marshal to, the ValidateMustUnderstand property to enforce message validation, and the IncludeExceptionDetailInFaults property to return exceptions as FaultException objects to the service for debugging purposes.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0