Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / GetLastErrorDetailsRequest.cs / 1 / GetLastErrorDetailsRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; using System.IO; using System.Text; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; using Microsoft.InfoCards.Diagnostics; // // Opens a store file and checks the first element to make sure that this is // a valid infocard store file. // class GetLastErrorDetailsRequest :UIAgentRequest { public GetLastErrorDetailsRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } // // Summary // Read the marshalled arguments // protected override void OnMarshalInArgs() { } // // Summary // Read the first element of the file // protected override void OnProcess() { } // // Summary // Write the boolean value to be returned // protected override void OnMarshalOutArgs() { BinaryWriter writer = new BinaryWriter( OutArgs, Encoding.Unicode ); writer.Write( ParentRequest is GetBrowserTokenRequest ); int error = (int)EventCode.E_ICARD_COMMUNICATION; Exception e = ParentRequest.ProcessingException; if( null != e ) { // // Try to find the innermost infocard exception // Exception lastInfoCardException = null; while( e is InfoCardBaseException ) { lastInfoCardException = e; if( null != e.InnerException ) { e = e.InnerException; } else { break; } } if( null != lastInfoCardException ) { error = ( lastInfoCardException as InfoCardBaseException ).NativeHResult; } } writer.Write( error ); } } } // 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
- ListViewDeleteEventArgs.cs
- Material.cs
- UnsafeNativeMethodsCLR.cs
- SizeConverter.cs
- ValidatorCompatibilityHelper.cs
- ExpressionBindingsDialog.cs
- WinFormsSpinner.cs
- CodeDomExtensionMethods.cs
- DBSchemaTable.cs
- DetailsViewModeEventArgs.cs
- StringFreezingAttribute.cs
- ObjectDataSourceDesigner.cs
- DropDownList.cs
- ProcessHostServerConfig.cs
- RegistryKey.cs
- CompilerError.cs
- SafeWaitHandle.cs
- SafeProcessHandle.cs
- DynamicDataRouteHandler.cs
- CompilerScopeManager.cs
- SelectedGridItemChangedEvent.cs
- DataGridViewTextBoxCell.cs
- ItemCollectionEditor.cs
- MenuAutomationPeer.cs
- PasswordTextContainer.cs
- TableAdapterManagerHelper.cs
- SchemaElementDecl.cs
- SingleSelectRootGridEntry.cs
- SettingsPropertyWrongTypeException.cs
- DataTableReaderListener.cs
- FrameworkRichTextComposition.cs
- MemberAccessException.cs
- BatchParser.cs
- ByteRangeDownloader.cs
- ValidationResult.cs
- Types.cs
- TypedDatasetGenerator.cs
- VectorValueSerializer.cs
- DoubleAnimationUsingPath.cs
- ActivityMarkupSerializer.cs
- SerializationTrace.cs
- ListViewHitTestInfo.cs
- StorageModelBuildProvider.cs
- HttpHandlersSection.cs
- SubMenuStyle.cs
- AnchorEditor.cs
- RegionData.cs
- AssemblyInfo.cs
- RadioButtonList.cs
- ControlPropertyNameConverter.cs
- DrawListViewSubItemEventArgs.cs
- LogPolicy.cs
- GeometryCollection.cs
- FormViewInsertedEventArgs.cs
- XmlSortKey.cs
- DefaultPrintController.cs
- ToolStripItemCollection.cs
- DataGridItemAttachedStorage.cs
- SecurityPolicySection.cs
- BamlLocalizabilityResolver.cs
- UnsafeNativeMethods.cs
- CSharpCodeProvider.cs
- PopupRootAutomationPeer.cs
- ExcCanonicalXml.cs
- D3DImage.cs
- XmlSchemaFacet.cs
- StyleSelector.cs
- Update.cs
- DesignerTransactionCloseEvent.cs
- GridViewColumnCollection.cs
- ColorContextHelper.cs
- WorkflowMarkupElementEventArgs.cs
- MenuTracker.cs
- SqlCharStream.cs
- ObjectAssociationEndMapping.cs
- ServiceDocumentFormatter.cs
- ChannelSinkStacks.cs
- _NetworkingPerfCounters.cs
- PopupRootAutomationPeer.cs
- DataReaderContainer.cs
- DependencyPropertyValueSerializer.cs
- SerializationTrace.cs
- WindowsTooltip.cs
- GetPageCompletedEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- BrowserDefinitionCollection.cs
- XmlSchemaObject.cs
- BezierSegment.cs
- ClipboardData.cs
- MailAddress.cs
- HttpCookieCollection.cs
- XPathQueryGenerator.cs
- TextPointer.cs
- Ref.cs
- DocumentPageView.cs
- WebPartZone.cs
- StartUpEventArgs.cs
- ContextMenuAutomationPeer.cs
- Camera.cs
- GZipDecoder.cs