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
- Maps.cs
- xml.cs
- SettingsSavedEventArgs.cs
- Selection.cs
- SystemDropShadowChrome.cs
- ExpressionPrefixAttribute.cs
- ArithmeticLiteral.cs
- EncryptedKey.cs
- DependencyPropertyHelper.cs
- HttpServerVarsCollection.cs
- SolidBrush.cs
- SerialPort.cs
- HeaderedItemsControl.cs
- WebPartVerb.cs
- UserControlParser.cs
- TextSerializer.cs
- ColorAnimation.cs
- NoneExcludedImageIndexConverter.cs
- CommonProperties.cs
- TextBoxLine.cs
- TabControlEvent.cs
- BinaryFormatterWriter.cs
- GC.cs
- SqlRewriteScalarSubqueries.cs
- ManagementEventArgs.cs
- CopyAction.cs
- CompressedStack.cs
- XmlDocumentType.cs
- RestrictedTransactionalPackage.cs
- CqlLexerHelpers.cs
- _Win32.cs
- PreProcessor.cs
- XPathDescendantIterator.cs
- UpdateCommandGenerator.cs
- BinaryCommonClasses.cs
- XmlNodeChangedEventArgs.cs
- HMAC.cs
- GridErrorDlg.cs
- LoadGrammarCompletedEventArgs.cs
- ReadOnlyState.cs
- DataRecordInfo.cs
- DbConnectionStringCommon.cs
- ScrollPattern.cs
- DynamicQueryableWrapper.cs
- SqlParameterizer.cs
- BufferModeSettings.cs
- SessionStateContainer.cs
- DataPagerField.cs
- Splitter.cs
- ObjectMemberMapping.cs
- CommandConverter.cs
- ReadOnlyTernaryTree.cs
- QuaternionKeyFrameCollection.cs
- CqlErrorHelper.cs
- HuffmanTree.cs
- ADMembershipProvider.cs
- SourceFilter.cs
- PhysicalOps.cs
- GradientStopCollection.cs
- ObjectHelper.cs
- TextContainerHelper.cs
- RtfToken.cs
- Graphics.cs
- LicenseProviderAttribute.cs
- PropertyIdentifier.cs
- PermissionListSet.cs
- ProcessHostMapPath.cs
- LocationSectionRecord.cs
- EntityDesignPluralizationHandler.cs
- IListConverters.cs
- HttpResponseInternalWrapper.cs
- OrCondition.cs
- MatrixConverter.cs
- OdbcReferenceCollection.cs
- EnumerableCollectionView.cs
- Point3DKeyFrameCollection.cs
- ToolStripItemEventArgs.cs
- MultiBindingExpression.cs
- SelectionProcessor.cs
- BaseTreeIterator.cs
- RuntimeConfigLKG.cs
- PngBitmapDecoder.cs
- SR.cs
- OleDbInfoMessageEvent.cs
- InstanceDataCollectionCollection.cs
- ProfessionalColorTable.cs
- XmlAttributes.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- RectAnimationUsingKeyFrames.cs
- XamlTemplateSerializer.cs
- AmbientValueAttribute.cs
- CapabilitiesPattern.cs
- TcpServerChannel.cs
- DetailsViewPageEventArgs.cs
- ResXResourceReader.cs
- WeakReferenceList.cs
- GridViewUpdatedEventArgs.cs
- XmlSchemaValidator.cs
- RawUIStateInputReport.cs
- CollectionDataContractAttribute.cs