Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / SetUserLanguageRequest.cs / 1 / SetUserLanguageRequest.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace Microsoft.InfoCards
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
class SetUserLanguageRequest : UIAgentRequest
{
int m_lcid;
public SetUserLanguageRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent )
: base( rpcHandle, inArgs, outArgs, parent )
{
}
protected override void OnInitializeAsSystem()
{
base.OnInitializeAsSystem();
}
protected override void OnMarshalInArgs()
{
BinaryReader reader = new InfoCardBinaryReader( InArgs, Encoding.Unicode );
m_lcid = (int)reader.ReadUInt32();
}
protected override void OnProcess()
{
ParentRequest.UserLanguage = m_lcid;
}
protected override void OnMarshalOutArgs()
{
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChangeInterceptorAttribute.cs
- BitmapEffectCollection.cs
- GB18030Encoding.cs
- RawStylusInputCustomDataList.cs
- Soap11ServerProtocol.cs
- Cell.cs
- CorrelationManager.cs
- BufferBuilder.cs
- TextBox.cs
- ResXBuildProvider.cs
- ValueUtilsSmi.cs
- Cursor.cs
- RuntimeConfig.cs
- DefaultValidator.cs
- CodeLabeledStatement.cs
- SettingsSavedEventArgs.cs
- DocumentViewerHelper.cs
- odbcmetadatacollectionnames.cs
- TemplateParser.cs
- XmlDocumentType.cs
- XmlException.cs
- SqlHelper.cs
- UpdateCompiler.cs
- ColorBlend.cs
- MemberJoinTreeNode.cs
- UnicodeEncoding.cs
- FontUnit.cs
- SearchForVirtualItemEventArgs.cs
- BinaryFormatter.cs
- XmlSerializationWriter.cs
- FunctionGenerator.cs
- BaseDataList.cs
- XmlUtilWriter.cs
- EventItfInfo.cs
- Vertex.cs
- Translator.cs
- ResourceExpressionEditorSheet.cs
- HandledEventArgs.cs
- StoreItemCollection.cs
- AttributeXamlType.cs
- TreeViewEvent.cs
- AutoResetEvent.cs
- PeerPresenceInfo.cs
- CheckBoxFlatAdapter.cs
- HandoffBehavior.cs
- XmlArrayAttribute.cs
- CompilerErrorCollection.cs
- SpeechEvent.cs
- DbgUtil.cs
- ItemMap.cs
- CalendarDayButton.cs
- SqlBuilder.cs
- ElementProxy.cs
- VisualBrush.cs
- ItemCheckedEvent.cs
- AuthenticationModuleElementCollection.cs
- CellQuery.cs
- SerialPinChanges.cs
- Internal.cs
- CompatibleComparer.cs
- FileDialogCustomPlace.cs
- BooleanAnimationUsingKeyFrames.cs
- _TransmitFileOverlappedAsyncResult.cs
- GeneralTransformGroup.cs
- ServiceDurableInstanceContextProvider.cs
- ResizeGrip.cs
- TextRunProperties.cs
- SecurityHelper.cs
- WindowsTokenRoleProvider.cs
- PageContentAsyncResult.cs
- ScaleTransform3D.cs
- Set.cs
- Line.cs
- TableLayoutStyle.cs
- DrawingImage.cs
- TrackingMemoryStreamFactory.cs
- Accessible.cs
- TypeToStringValueConverter.cs
- ObjectKeyFrameCollection.cs
- BufferedGraphicsManager.cs
- SharedPerformanceCounter.cs
- BindableAttribute.cs
- DatatypeImplementation.cs
- PropertyRecord.cs
- CSharpCodeProvider.cs
- Run.cs
- ExtenderProvidedPropertyAttribute.cs
- ColumnClickEvent.cs
- XComponentModel.cs
- BackgroundFormatInfo.cs
- SamlAssertion.cs
- ResourceContainer.cs
- XmlNamespaceManager.cs
- FormsAuthenticationCredentials.cs
- SessionEndingCancelEventArgs.cs
- BezierSegment.cs
- DataViewSettingCollection.cs
- AdapterUtil.cs
- ParameterBuilder.cs
- ConnectionStringSettings.cs