Export (0) Print
Expand All

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.

  Name Description
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).

Show:
© 2014 Microsoft