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
- ThemeableAttribute.cs
- ErrorWebPart.cs
- MimeBasePart.cs
- ImmutablePropertyDescriptorGridEntry.cs
- UInt32.cs
- DependencyObjectPropertyDescriptor.cs
- ObjectRef.cs
- LocalFileSettingsProvider.cs
- SqlProfileProvider.cs
- ValueProviderWrapper.cs
- ProviderIncompatibleException.cs
- XDeferredAxisSource.cs
- MarshalDirectiveException.cs
- WindowsBrush.cs
- BitStack.cs
- EntityDataSourceContextCreatingEventArgs.cs
- FilteredDataSetHelper.cs
- EmbeddedMailObjectsCollection.cs
- AvTraceFormat.cs
- GZipStream.cs
- DataServicePagingProviderWrapper.cs
- RenderingEventArgs.cs
- Convert.cs
- SqlErrorCollection.cs
- QilParameter.cs
- MetadataUtilsSmi.cs
- DrawingAttributeSerializer.cs
- Delegate.cs
- BulletedListEventArgs.cs
- DataSourceUtil.cs
- EventWaitHandle.cs
- PropertyFilter.cs
- DataGridViewCellStyleConverter.cs
- DESCryptoServiceProvider.cs
- PromptBuilder.cs
- LexicalChunk.cs
- AppDomainManager.cs
- DefaultShape.cs
- AssemblyFilter.cs
- WinEventQueueItem.cs
- RegexInterpreter.cs
- FormViewInsertEventArgs.cs
- EntityDataSourceContextCreatingEventArgs.cs
- TextPointerBase.cs
- FixedElement.cs
- SymbolPair.cs
- TypeBuilderInstantiation.cs
- ElapsedEventArgs.cs
- KerberosRequestorSecurityToken.cs
- CalendarButtonAutomationPeer.cs
- XmlSchemaDocumentation.cs
- EastAsianLunisolarCalendar.cs
- PropertyStore.cs
- TypeLoader.cs
- ListSourceHelper.cs
- TitleStyle.cs
- CancelEventArgs.cs
- MsmqVerifier.cs
- ListView.cs
- TextPenaltyModule.cs
- FormViewInsertEventArgs.cs
- ProcessThreadCollection.cs
- XmlWellformedWriter.cs
- MutexSecurity.cs
- X509IssuerSerialKeyIdentifierClause.cs
- safex509handles.cs
- RIPEMD160.cs
- Region.cs
- XMLDiffLoader.cs
- ValidationEventArgs.cs
- DrawingState.cs
- FreezableCollection.cs
- RuntimeEnvironment.cs
- MessageSmuggler.cs
- SchemaSetCompiler.cs
- UnSafeCharBuffer.cs
- FontCacheLogic.cs
- SimpleType.cs
- XmlSchemaSimpleContentRestriction.cs
- ListViewItemSelectionChangedEvent.cs
- WebHostedComPlusServiceHost.cs
- DetailsViewPageEventArgs.cs
- TogglePattern.cs
- GreenMethods.cs
- OleDbParameterCollection.cs
- StartUpEventArgs.cs
- CssStyleCollection.cs
- CodeTypeOfExpression.cs
- DbProviderServices.cs
- PointAnimationUsingKeyFrames.cs
- DllNotFoundException.cs
- HttpPostedFile.cs
- CodeParameterDeclarationExpressionCollection.cs
- LazyTextWriterCreator.cs
- BookmarkScope.cs
- CfgSemanticTag.cs
- TextEndOfSegment.cs
- TextFindEngine.cs
- Unit.cs
- ThemeDirectoryCompiler.cs