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
- AddInController.cs
- ItemsChangedEventArgs.cs
- CodeStatement.cs
- SByteConverter.cs
- BoundPropertyEntry.cs
- PropertyTabAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- Compress.cs
- RSAProtectedConfigurationProvider.cs
- XDRSchema.cs
- DataTableTypeConverter.cs
- Figure.cs
- XmlSchemaSequence.cs
- ShapeTypeface.cs
- EventData.cs
- WinFormsSecurity.cs
- BitArray.cs
- PersonalizationStateQuery.cs
- StorageRoot.cs
- WorkflowMarkupSerializerMapping.cs
- xmlfixedPageInfo.cs
- XPathNavigator.cs
- XmlNamedNodeMap.cs
- LabelAutomationPeer.cs
- SafeRightsManagementSessionHandle.cs
- SynchronizationContext.cs
- WebRequestModuleElementCollection.cs
- Point.cs
- Accessible.cs
- XamlReaderConstants.cs
- OleDbCommandBuilder.cs
- PolyLineSegment.cs
- HtmlControl.cs
- SiteMapDesignerDataSourceView.cs
- PageContent.cs
- Transform.cs
- MissingMemberException.cs
- VBIdentifierTrimConverter.cs
- FilterableAttribute.cs
- EditorBrowsableAttribute.cs
- ProcessInputEventArgs.cs
- XmlEncoding.cs
- CodeMemberEvent.cs
- DocumentPageView.cs
- sortedlist.cs
- RemoveStoryboard.cs
- _NegoStream.cs
- RangeValuePatternIdentifiers.cs
- RuntimeHelpers.cs
- Merger.cs
- InputScopeConverter.cs
- ByteStack.cs
- CSharpCodeProvider.cs
- PasswordRecoveryDesigner.cs
- MaskedTextBoxDesigner.cs
- DataShape.cs
- TimeZone.cs
- ZipArchive.cs
- OperandQuery.cs
- AutomationProperties.cs
- CLRBindingWorker.cs
- TranslateTransform.cs
- SimpleExpression.cs
- WCFBuildProvider.cs
- XmlLoader.cs
- RichTextBoxConstants.cs
- SystemIPInterfaceProperties.cs
- Positioning.cs
- x509utils.cs
- RequestResizeEvent.cs
- InvokeMethodActivity.cs
- InputProviderSite.cs
- ArgumentNullException.cs
- WindowsListViewItem.cs
- CodeGroup.cs
- SpAudioStreamWrapper.cs
- Registration.cs
- StreamReader.cs
- BreakSafeBase.cs
- PointConverter.cs
- XmlSchemaSimpleContent.cs
- ArcSegment.cs
- SqlDependencyListener.cs
- PersonalizationStateQuery.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- ADRoleFactory.cs
- SecureStringHasher.cs
- ObjectDesignerDataSourceView.cs
- LocalizationComments.cs
- OleDbConnectionFactory.cs
- SrgsToken.cs
- RenderingBiasValidation.cs
- DataColumnPropertyDescriptor.cs
- ApplicationCommands.cs
- CompoundFileStreamReference.cs
- MetadataException.cs
- DataGridViewCellValidatingEventArgs.cs
- LogicalExpr.cs
- CollectionViewGroupInternal.cs
- FontWeightConverter.cs