This documentation is archived and is not being maintained.
ComContractElement Class
Visual Studio 2008
Specifies a COM+ integration service contract. This class cannot be inherited.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
You can use the following configuration to specify the namespace, contract name, and user defined types to be included. You can also specify other settings for a service contract
<comContracts> <comContract contract="{5163B1E7-F0CF-4B6A-9A02-4AB654F34284}" name="_Broker" namespace="http://tempuri.org/5163B1E7-F0CF-4B6A-9A02-4AB654F34284" requiresSession="true"> <exposedMethods> <add exposedMethod="BuyStock" /> <add exposedMethod="SellStock" /> <add exposedMethod="ExecuteTransaction" /> </exposedMethods> </comContract> </comContracts>
When the service is initialized, the specified namespaces and contract names are applied to the generated service descriptions.
System.Object
System.Configuration.ConfigurationElement
System.ServiceModel.Configuration.ComContractElement
System.Configuration.ConfigurationElement
System.ServiceModel.Configuration.ComContractElement
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: