次の方法で共有


ServiceActivationOptions.ApplyCultureToCurrentContext Method

Definition

Applies the values of ClientCulture and ClientUICulture to the current ExecutionContext, if they have been set on this struct.

public:
 Microsoft::ServiceHub::Framework::ServiceActivationOptions::CultureApplication ApplyCultureToCurrentContext();
public Microsoft.ServiceHub.Framework.ServiceActivationOptions.CultureApplication ApplyCultureToCurrentContext ();
member this.ApplyCultureToCurrentContext : unit -> Microsoft.ServiceHub.Framework.ServiceActivationOptions.CultureApplication
Public Function ApplyCultureToCurrentContext () As ServiceActivationOptions.CultureApplication

Returns

A value to dispose of to revert the CultureInfo properties to their prior values.

Remarks

By surrounding construction of a ServiceRpcDescriptor.RpcConnection with the client's applied culture, that connection is expected to pick it up and dispatch incoming RPC requests using that culture.

Applies to