Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientRuntime Class

The insertion point for classes that extend the functionality of Silverlight client objects for all messages handled by a client application.

System.Object
  System.ServiceModel.Dispatcher.ClientRuntime

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public sealed class ClientRuntime

The ClientRuntime type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneContractClientTypeGets the type of the contract associated with the client.
Public propertySupported by Silverlight for Windows PhoneContractNameGets the name of the contract associated with the client.
Public propertySupported by Silverlight for Windows PhoneContractNamespaceGets the namespace of the contract associated with the client.
Public propertySupported by Silverlight for Windows PhoneManualAddressingGets or sets a value that indicates whether the client adds addressing headers to request-reply messages.
Public propertySupported by Silverlight for Windows PhoneMaxFaultSizeGets or sets the maximum fault message size.
Public propertyMessageInspectorsGets a list of message inspector implementations for a client.
Public propertyMessageVersionNoneFaultsEnabledGets or sets a value that indicates the message version none and faults are enabled.
Public propertyOperationsGets a collection of client operations for a client.
Public propertySupported by Silverlight for Windows PhoneOperationSelectorGets or sets a IClientOperationSelector implementation that can be used to select a ClientOperation.
Public propertySupported by Silverlight for Windows PhoneUnhandledClientOperationGets the client operation for methods that do not have a corresponding ClientOperation in the Operations collection.
Public propertySupported by Silverlight for Windows PhoneViaGets or sets the transport address that is used to send messages through the client.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Silverlight client objects, whether an extension of ClientBase<TChannel> or of IClientChannel, are used by Silverlight 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:

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

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft