Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Syndication / UrlSyndicationContent.cs / 1 / UrlSyndicationContent.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Syndication { using System.Xml; // NOTE: This class implements Clone so if you add any members, please update the copy ctor public class UrlSyndicationContent : SyndicationContent { string mediaType; Uri url; public UrlSyndicationContent(Uri url, string mediaType) : base() { if (url == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("url"); } this.url = url; this.mediaType = mediaType; } protected UrlSyndicationContent(UrlSyndicationContent source) : base(source) { if (source == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source"); } this.url = source.url; this.mediaType = source.mediaType; } public override string Type { get { return this.mediaType; } } public Uri Url { get { return this.url; } } public override SyndicationContent Clone() { return new UrlSyndicationContent(this); } protected override void WriteContentsTo(XmlWriter writer) { writer.WriteAttributeString(Atom10Constants.SourceTag, string.Empty, FeedUtils.GetUriString(this.url)); } } } // 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
- FieldAccessException.cs
- sqlpipe.cs
- DSACryptoServiceProvider.cs
- WindowsScrollBar.cs
- ClientBuildManagerCallback.cs
- KeyValuePairs.cs
- EventMappingSettingsCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- ApplicationManager.cs
- HandlerBase.cs
- XmlILStorageConverter.cs
- WindowsToolbarItemAsMenuItem.cs
- TextEditorCharacters.cs
- SqlReorderer.cs
- PnrpPeerResolverElement.cs
- RowToFieldTransformer.cs
- DecimalAnimationUsingKeyFrames.cs
- CodeChecksumPragma.cs
- Point3D.cs
- WebPartMinimizeVerb.cs
- GAC.cs
- ListBindingHelper.cs
- InvokerUtil.cs
- SchemaTableOptionalColumn.cs
- OverlappedContext.cs
- UnionExpr.cs
- ApplicationSettingsBase.cs
- GridViewColumnHeaderAutomationPeer.cs
- TreeNodeBindingCollection.cs
- DocumentViewer.cs
- InvalidFilterCriteriaException.cs
- TableCell.cs
- Int32Rect.cs
- PropertyGeneratedEventArgs.cs
- BaseDataBoundControl.cs
- ObjectDataSourceMethodEventArgs.cs
- TextTreeInsertElementUndoUnit.cs
- RegexRunner.cs
- DecoderReplacementFallback.cs
- XmlQueryRuntime.cs
- NavigationExpr.cs
- ToolStripRenderer.cs
- ControlsConfig.cs
- Win32Native.cs
- WindowsSolidBrush.cs
- CallbackHandler.cs
- XmlSchemaAttributeGroup.cs
- CompressStream.cs
- HostingEnvironmentSection.cs
- BasePropertyDescriptor.cs
- DropSource.cs
- DbQueryCommandTree.cs
- ISAPIApplicationHost.cs
- PrimitiveType.cs
- PropertyEmitterBase.cs
- ToolStripContentPanel.cs
- InvokePatternIdentifiers.cs
- IImplicitResourceProvider.cs
- HwndHostAutomationPeer.cs
- LayoutDump.cs
- ImportContext.cs
- Evidence.cs
- ActiveDocumentEvent.cs
- DurationConverter.cs
- DataGridRowEventArgs.cs
- TypeForwardedToAttribute.cs
- TickBar.cs
- HtmlInputSubmit.cs
- XamlStyleSerializer.cs
- SecurityCriticalDataForSet.cs
- InternalBase.cs
- translator.cs
- PtsHost.cs
- ZipIOLocalFileHeader.cs
- RequestUriProcessor.cs
- _SafeNetHandles.cs
- NetPeerTcpBindingCollectionElement.cs
- Selection.cs
- HMACSHA512.cs
- DecoderNLS.cs
- ComponentDispatcherThread.cs
- FillErrorEventArgs.cs
- CopyOnWriteList.cs
- GraphicsPathIterator.cs
- TemplateField.cs
- DataGridColumn.cs
- DataSysAttribute.cs
- TraceContext.cs
- ConnectionManagementElement.cs
- UIElement3DAutomationPeer.cs
- GestureRecognizer.cs
- ActivityStateQuery.cs
- MessageBox.cs
- Splitter.cs
- columnmapfactory.cs
- SchemaType.cs
- NameTable.cs
- WorkflowInstanceExtensionCollection.cs
- StreamingContext.cs
- StateDesigner.cs