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
- GroupByExpressionRewriter.cs
- ProjectionPlanCompiler.cs
- EventLogPermissionEntry.cs
- InstanceStore.cs
- EventArgs.cs
- JumpPath.cs
- FieldToken.cs
- SynchronizedCollection.cs
- WSHttpBindingCollectionElement.cs
- DeviceContext.cs
- BitmapEffect.cs
- DateRangeEvent.cs
- DbConnectionPoolGroup.cs
- CorrelationTokenTypeConvertor.cs
- UnsafeNativeMethods.cs
- HwndAppCommandInputProvider.cs
- MailHeaderInfo.cs
- MsmqChannelFactory.cs
- WhitespaceRuleLookup.cs
- EntityDataSourceChangingEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- DescendantOverDescendantQuery.cs
- FullTextLine.cs
- Message.cs
- ConfigurationSettings.cs
- DeviceContexts.cs
- MemberExpression.cs
- DoubleAnimationUsingKeyFrames.cs
- Pair.cs
- SQLMoneyStorage.cs
- ExcCanonicalXml.cs
- HttpCacheVary.cs
- SchemaElementLookUpTable.cs
- HitTestDrawingContextWalker.cs
- AutomationElementIdentifiers.cs
- LinkClickEvent.cs
- DocumentsTrace.cs
- XmlObjectSerializerReadContext.cs
- HandlerWithFactory.cs
- BooleanAnimationBase.cs
- WebPartTransformerCollection.cs
- HttpWebResponse.cs
- CredentialCache.cs
- Stream.cs
- WebBrowserBase.cs
- LocalizationParserHooks.cs
- DesignObjectWrapper.cs
- FontResourceCache.cs
- Msec.cs
- ApplicationManager.cs
- connectionpool.cs
- TableAdapterManagerMethodGenerator.cs
- ToolStripRenderer.cs
- DefaultParameterValueAttribute.cs
- QilTargetType.cs
- Int16Animation.cs
- DelegateSerializationHolder.cs
- CookielessHelper.cs
- State.cs
- ScrollBarRenderer.cs
- NameValueSectionHandler.cs
- DbDataReader.cs
- ApplyImportsAction.cs
- ObjectDisposedException.cs
- MultipleViewProviderWrapper.cs
- Underline.cs
- OrderedDictionaryStateHelper.cs
- SafeNativeMethods.cs
- EmptyEnumerable.cs
- SerializationEventsCache.cs
- HttpProfileBase.cs
- AddInPipelineAttributes.cs
- PropertyCondition.cs
- HyperLinkDataBindingHandler.cs
- DropShadowBitmapEffect.cs
- WebScriptMetadataMessageEncoderFactory.cs
- XmlSchemaSubstitutionGroup.cs
- Trace.cs
- CanonicalFontFamilyReference.cs
- TriggerAction.cs
- DocumentViewerBase.cs
- _SslSessionsCache.cs
- RectAnimation.cs
- EventEntry.cs
- SystemMulticastIPAddressInformation.cs
- CompositeTypefaceMetrics.cs
- SpecialNameAttribute.cs
- DownloadProgressEventArgs.cs
- MultipleViewProviderWrapper.cs
- ReferenceService.cs
- FixedHyperLink.cs
- GridLength.cs
- ColumnPropertiesGroup.cs
- unitconverter.cs
- DefaultWorkflowLoaderService.cs
- PriorityRange.cs
- ListSortDescriptionCollection.cs
- FontFamilyValueSerializer.cs
- SwitchElementsCollection.cs
- MobileUserControl.cs