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
- PasswordBoxAutomationPeer.cs
- FormatControl.cs
- Positioning.cs
- GroupLabel.cs
- DetailsViewRowCollection.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- RNGCryptoServiceProvider.cs
- DataPointer.cs
- ObjectSet.cs
- AutomationPropertyInfo.cs
- ContentType.cs
- CodeDomConfigurationHandler.cs
- UnsignedPublishLicense.cs
- ScrollBar.cs
- DeploymentSection.cs
- PropertyGeneratedEventArgs.cs
- UnitySerializationHolder.cs
- AtlasWeb.Designer.cs
- MethodImplAttribute.cs
- Label.cs
- FormatSelectingMessageInspector.cs
- RegexRunner.cs
- SystemFonts.cs
- PropertyInfo.cs
- RegistrationProxy.cs
- DatagridviewDisplayedBandsData.cs
- FontFamily.cs
- TextServicesCompartmentContext.cs
- ImageMap.cs
- LineSegment.cs
- SkewTransform.cs
- GenericUriParser.cs
- OdbcConnectionString.cs
- BoolExpr.cs
- TextBoxRenderer.cs
- RootBuilder.cs
- FilterException.cs
- ZipIOLocalFileDataDescriptor.cs
- Track.cs
- DataGridViewDataConnection.cs
- MembershipPasswordException.cs
- BitStream.cs
- RawMouseInputReport.cs
- UriTemplateCompoundPathSegment.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XPathEmptyIterator.cs
- CheckBoxFlatAdapter.cs
- SingleAnimationUsingKeyFrames.cs
- WmlLiteralTextAdapter.cs
- DbDeleteCommandTree.cs
- HttpHandlerActionCollection.cs
- MetadataPropertyvalue.cs
- SimpleExpression.cs
- Transaction.cs
- Accessible.cs
- SimpleHandlerBuildProvider.cs
- ContentDisposition.cs
- LassoSelectionBehavior.cs
- ConnectionInterfaceCollection.cs
- StringTraceRecord.cs
- ImageKeyConverter.cs
- ObjectCacheSettings.cs
- _KerberosClient.cs
- AutoResizedEvent.cs
- AccessControlList.cs
- HttpPostProtocolImporter.cs
- HtmlInputText.cs
- RangeValuePattern.cs
- ImmComposition.cs
- DataObjectEventArgs.cs
- SqlDuplicator.cs
- TextServicesProperty.cs
- CodeCommentStatementCollection.cs
- InstanceDataCollection.cs
- ExpressionHelper.cs
- TraceListener.cs
- ExcCanonicalXml.cs
- OptimizedTemplateContent.cs
- userdatakeys.cs
- UDPClient.cs
- MenuItem.cs
- WaitHandleCannotBeOpenedException.cs
- DocumentReference.cs
- MonthCalendar.cs
- FixedSOMImage.cs
- InputMethodStateChangeEventArgs.cs
- GroupBoxAutomationPeer.cs
- FixedSOMContainer.cs
- CompoundFileStorageReference.cs
- ValidatingReaderNodeData.cs
- DefaultShape.cs
- HttpConfigurationContext.cs
- TextProviderWrapper.cs
- WebPartRestoreVerb.cs
- PerformanceCounterLib.cs
- _SecureChannel.cs
- ImageSource.cs
- TransactionTraceIdentifier.cs
- EntityDataSourceConfigureObjectContext.cs
- EdmSchemaError.cs