ServiceEndpoint.Contract Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets the contract for the service endpoint.
Namespace: System.ServiceModel.Description
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public ReadOnly Property Contract As ContractDescription
public ContractDescription Contract { get; }
Property Value
Type: System.ServiceModel.Description.ContractDescription
The ContractDescription that specifies the contract for the service endpoint.
Remarks
Each service endpoint has a unique contract. From the ContractDescription, the OperationDescriptionCollection for the methods contained in the contract can be accessed using the Operations property.
Version Information
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
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.