ClientRuntime Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The insertion point for classes that extend the functionality of Windows Phone client objects for all messages handled by a client application.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The ClientRuntime type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ContractClientType | Gets the type of the contract associated with the client. |
![]() | ContractName | Gets the name of the contract associated with the client. |
![]() | ContractNamespace | Gets the namespace of the contract associated with the client. |
![]() | ManualAddressing | Gets or sets a value that indicates whether the client adds addressing headers to request-reply messages. |
![]() | MaxFaultSize | Gets or sets the maximum fault message size. |
![]() | OperationSelector | Gets or sets a IClientOperationSelector implementation that can be used to select a ClientOperation. |
![]() | UnhandledClientOperation | Gets the client operation for methods that do not have a corresponding ClientOperation. |
![]() | Via | Gets or sets the transport address that is used to send messages through the client. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows Phone client objects, whether an extension of ClientBase<TChannel> or of IClientChannel, are used by Windows Phone client applications to convert method calls into outbound messages and convert incoming messages to objects and pass them to the results of client methods.
The ManualAddressing property enables an application to turn off some automatic addressing headers to directly control addressing.
The MaxFaultSize property enables the client to limit the size of fault messages that the client accepts.
The UnhandledClientOperation property returns the operation to which unexpected messages are passed.
The Via property sets the value of the destination of the message at the transport level to support intermediaries and other scenarios.
In addition, there are a number of other properties that retrieve the client contract information:


