Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- NativeMethods.cs
- ServiceAuthorizationElement.cs
- CircleHotSpot.cs
- HealthMonitoringSectionHelper.cs
- ElementNotAvailableException.cs
- _DisconnectOverlappedAsyncResult.cs
- TypeToken.cs
- CustomErrorsSection.cs
- Empty.cs
- BookmarkUndoUnit.cs
- CryptoApi.cs
- PrintPreviewControl.cs
- GenericUriParser.cs
- TextBoxView.cs
- TypeEnumerableViewSchema.cs
- InputScopeManager.cs
- FormatException.cs
- FileSecurity.cs
- SmtpNetworkElement.cs
- ListControl.cs
- ToolZone.cs
- MimeMapping.cs
- NonBatchDirectoryCompiler.cs
- WebServiceClientProxyGenerator.cs
- ComponentResourceKeyConverter.cs
- PropertyGridDesigner.cs
- PropertyFilterAttribute.cs
- hresults.cs
- EventDescriptorCollection.cs
- DataGridRowAutomationPeer.cs
- SmtpCommands.cs
- XmlnsDictionary.cs
- ToolbarAUtomationPeer.cs
- WorkflowApplicationAbortedException.cs
- AggregateException.cs
- SqlTypesSchemaImporter.cs
- SqlDataReader.cs
- ServiceOperationWrapper.cs
- DataControlPagerLinkButton.cs
- ListSortDescriptionCollection.cs
- DBDataPermissionAttribute.cs
- ClaimComparer.cs
- DynamicDiscoSearcher.cs
- PeerNeighborManager.cs
- XmlnsDictionary.cs
- SynchronizationScope.cs
- XDRSchema.cs
- DNS.cs
- RegexGroupCollection.cs
- OptimalTextSource.cs
- SerializationInfoEnumerator.cs
- WindowsFormsLinkLabel.cs
- DataTransferEventArgs.cs
- ServiceBehaviorElementCollection.cs
- XmlRootAttribute.cs
- Latin1Encoding.cs
- OleDbStruct.cs
- Compiler.cs
- IndentedWriter.cs
- Set.cs
- precedingquery.cs
- CancelAsyncOperationRequest.cs
- Parallel.cs
- FontNamesConverter.cs
- SystemWebCachingSectionGroup.cs
- Run.cs
- TemplateNameScope.cs
- EventPrivateKey.cs
- tooltip.cs
- AnonymousIdentificationSection.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlBinder.cs
- TableRowGroup.cs
- SqlAliaser.cs
- PlanCompilerUtil.cs
- ICollection.cs
- xml.cs
- DataObject.cs
- webeventbuffer.cs
- ValueQuery.cs
- XmlBinaryReaderSession.cs
- activationcontext.cs
- Interfaces.cs
- XsltSettings.cs
- XmlSerializerAssemblyAttribute.cs
- WinFormsSecurity.cs
- ProxyWebPart.cs
- TextPenaltyModule.cs
- Configuration.cs
- SettingsSection.cs
- ResourceDictionary.cs
- ImageListStreamer.cs
- DataGridRelationshipRow.cs
- RowCache.cs
- Int64.cs
- StandardCommands.cs
- BindingElement.cs
- PipelineDeploymentState.cs
- URL.cs
- AxisAngleRotation3D.cs