Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Server / System / Data / Services / Serializers / MetadataSerializer.cs / 1 / MetadataSerializer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a serializer for CSDL documents. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Serializers { using System.Data.Services.Providers; using System.IO; using System.Text; ////// Provides support for serializing responses in CSDL format. /// internal sealed class MetadataSerializer : XmlDocumentSerializer { ////// Initializes a new XmlDocumentSerializer, ready to write /// out an XML document /// /// Stream to which output should be sent. /// Base URI from which resources should be resolved. /// Data provider from which metadata should be gathered. /// Text encoding for the response. internal MetadataSerializer( Stream output, Uri baseUri, IDataServiceProvider provider, Encoding encoding) : base(output, baseUri, provider, encoding) { } ///Handles the complete serialization for the specified content. internal override void WriteRequest() { this.Provider.GetMetadata(this.Writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a serializer for CSDL documents. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Serializers { using System.Data.Services.Providers; using System.IO; using System.Text; ////// Provides support for serializing responses in CSDL format. /// internal sealed class MetadataSerializer : XmlDocumentSerializer { ////// Initializes a new XmlDocumentSerializer, ready to write /// out an XML document /// /// Stream to which output should be sent. /// Base URI from which resources should be resolved. /// Data provider from which metadata should be gathered. /// Text encoding for the response. internal MetadataSerializer( Stream output, Uri baseUri, IDataServiceProvider provider, Encoding encoding) : base(output, baseUri, provider, encoding) { } ///Handles the complete serialization for the specified content. internal override void WriteRequest() { this.Provider.GetMetadata(this.Writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionQuoter.cs
- ADConnectionHelper.cs
- ExpressionBuilder.cs
- GridViewActionList.cs
- FontStretch.cs
- FirewallWrapper.cs
- Dictionary.cs
- SqlWebEventProvider.cs
- HijriCalendar.cs
- Tile.cs
- FormViewInsertedEventArgs.cs
- HtmlControlPersistable.cs
- DataGridViewBindingCompleteEventArgs.cs
- SmiConnection.cs
- figurelengthconverter.cs
- DataGridViewUtilities.cs
- QueryOutputWriter.cs
- Positioning.cs
- InvokeGenerator.cs
- ProtocolsConfiguration.cs
- WebServiceHandlerFactory.cs
- DataColumnChangeEvent.cs
- LogLogRecord.cs
- ActivityDesignerHelper.cs
- InputScope.cs
- ViewCellRelation.cs
- InstanceKeyNotReadyException.cs
- HostingEnvironmentSection.cs
- BCLDebug.cs
- CaseInsensitiveComparer.cs
- TraceProvider.cs
- TypeRestriction.cs
- GeometryConverter.cs
- CompilerTypeWithParams.cs
- TextureBrush.cs
- ToolStripProgressBar.cs
- FormsAuthenticationUser.cs
- MetadataCollection.cs
- FileDialog_Vista.cs
- SimpleExpression.cs
- TreeNodeStyle.cs
- WebPartManagerInternals.cs
- ObjectDataSourceView.cs
- ScriptControlDescriptor.cs
- COM2PropertyPageUITypeConverter.cs
- ColorTransformHelper.cs
- Tokenizer.cs
- AnnotationObservableCollection.cs
- FullTrustAssembliesSection.cs
- WebServiceData.cs
- ToolStripContentPanelRenderEventArgs.cs
- ClientFormsIdentity.cs
- MembershipAdapter.cs
- AutomationElementIdentifiers.cs
- UInt16.cs
- HttpCapabilitiesEvaluator.cs
- loginstatus.cs
- PreservationFileWriter.cs
- IntSecurity.cs
- GlyphsSerializer.cs
- DeferredRunTextReference.cs
- EventSetter.cs
- MetadataImporter.cs
- MergablePropertyAttribute.cs
- XmlSchemaGroupRef.cs
- ContextMenu.cs
- GeneratedView.cs
- EllipseGeometry.cs
- BinaryCommonClasses.cs
- ConstraintCollection.cs
- CustomExpression.cs
- CompoundFileDeflateTransform.cs
- FileRecordSequence.cs
- ComponentManagerBroker.cs
- GeneralTransformGroup.cs
- Misc.cs
- RoleServiceManager.cs
- UnsafeNativeMethods.cs
- MemberMaps.cs
- MenuItemCollection.cs
- SiteMap.cs
- WinEventWrap.cs
- FileVersionInfo.cs
- ShaderRenderModeValidation.cs
- HtmlTableRowCollection.cs
- TemplateBaseAction.cs
- ReaderWriterLock.cs
- CustomPopupPlacement.cs
- Trace.cs
- XmlSchemaComplexContent.cs
- DesignerActionPropertyItem.cs
- ModelChangedEventArgsImpl.cs
- MaterialGroup.cs
- XmlnsPrefixAttribute.cs
- SolidBrush.cs
- ApplicationBuildProvider.cs
- basecomparevalidator.cs
- ToggleButtonAutomationPeer.cs
- Stack.cs
- DocumentEventArgs.cs