ContractDescription.GetContract Method

Returns the contract description for a specified type of contract.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member GetContract(Type) Returns the contract description for a specified type of contract.
Public method Static member GetContract(Type, Object) Returns the contract description for a specified type of contract and service implementation.
Public method Static member GetContract(Type, Type) Returns the contract description for a specified type of contract and a specified type of service.
Top

The difference between the GetContract overloads is that the ones with two arguments allow you to find attributes from the service (for example, OperationBehaviorAttribute).

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft