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
- ServiceModelPerformanceCounters.cs
- HtmlInputHidden.cs
- AnimationClockResource.cs
- SqlNodeTypeOperators.cs
- SamlConditions.cs
- BadImageFormatException.cs
- ConfigXmlWhitespace.cs
- DecoratedNameAttribute.cs
- CachedBitmap.cs
- KeyGesture.cs
- Size.cs
- ListViewTableRow.cs
- CacheOutputQuery.cs
- CodeFieldReferenceExpression.cs
- Subordinate.cs
- CatalogZoneBase.cs
- RectAnimationUsingKeyFrames.cs
- BindingExpressionBase.cs
- CmsInterop.cs
- VisualStyleElement.cs
- ObjectDataSourceStatusEventArgs.cs
- Matrix.cs
- ConfigPathUtility.cs
- ServiceDesigner.cs
- DbException.cs
- CheckoutException.cs
- GuidConverter.cs
- StructuredProperty.cs
- PermissionSet.cs
- CheckBox.cs
- ThreadStateException.cs
- ConfigurationSettings.cs
- ValidatorCollection.cs
- SplitterCancelEvent.cs
- KoreanCalendar.cs
- WorkflowMarkupSerializerMapping.cs
- UnmanagedMarshal.cs
- CheckBoxRenderer.cs
- DesignerHost.cs
- SchemaElementLookUpTable.cs
- ProxyHwnd.cs
- DnsElement.cs
- MergePropertyDescriptor.cs
- Int32Rect.cs
- KeyEventArgs.cs
- GridSplitterAutomationPeer.cs
- RightsManagementLicense.cs
- PlatformNotSupportedException.cs
- TextChange.cs
- ButtonFieldBase.cs
- AlgoModule.cs
- HttpModuleAction.cs
- XmlDownloadManager.cs
- OletxCommittableTransaction.cs
- Ipv6Element.cs
- TypeListConverter.cs
- AttributeQuery.cs
- RC2.cs
- ProfileModule.cs
- PropertyDescriptorComparer.cs
- XmlSchemaGroup.cs
- AspNetHostingPermission.cs
- BitmapEffectInput.cs
- PromptStyle.cs
- HttpWriter.cs
- CompilationSection.cs
- FocusWithinProperty.cs
- FtpWebResponse.cs
- PointConverter.cs
- XPathConvert.cs
- PathSegment.cs
- WebPartTracker.cs
- EdmRelationshipRoleAttribute.cs
- DuplicateMessageDetector.cs
- SplashScreen.cs
- SchemaNotation.cs
- ServiceOperationParameter.cs
- SqlBulkCopyColumnMappingCollection.cs
- MulticastDelegate.cs
- CanExecuteRoutedEventArgs.cs
- Int16Converter.cs
- LinqDataSourceStatusEventArgs.cs
- WebHttpSecurityModeHelper.cs
- HtmlListAdapter.cs
- BasicExpressionVisitor.cs
- LinkArea.cs
- TokenBasedSet.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompositeDuplexBindingElement.cs
- XPathNavigator.cs
- CodeStatement.cs
- VersionValidator.cs
- SoapConverter.cs
- Gdiplus.cs
- DocumentSequence.cs
- MaskedTextBox.cs
- SystemIPGlobalStatistics.cs
- PropertyGroupDescription.cs
- ScopelessEnumAttribute.cs
- LinqToSqlWrapper.cs