UrlSyndicationContent 类
定义
表示由其他资源 URL 组成的联合内容。Represents syndication content that consists of a URL to another resource.
public ref class UrlSyndicationContent : System::ServiceModel::Syndication::SyndicationContent
public class UrlSyndicationContent : System.ServiceModel.Syndication.SyndicationContent
type UrlSyndicationContent = class
inherit SyndicationContent
Public Class UrlSyndicationContent
Inherits SyndicationContent
- 继承
示例
下面的示例演示如何使用 UrlSyndicationContent 类。The following example demonstrates how to use the UrlSyndicationContent class.
UrlSyndicationContent urlContent = new UrlSyndicationContent(new Uri("http://localhost/content"), "text/html");
Dim urlContent As UrlSyndicationContent = New UrlSyndicationContent(New Uri("http://localhost/content"), "text/html")
构造函数
| UrlSyndicationContent(Uri, String) |
使用指定的 UrlSyndicationContent 和媒体类型初始化 Uri 类的新实例。Initializes a new instance of the UrlSyndicationContent class with the specified Uri and media type. |
| UrlSyndicationContent(UrlSyndicationContent) |
使用指定的 UrlSyndicationContent 实例初始化 UrlSyndicationContent 类的新实例。Initializes a new instance of the UrlSyndicationContent class with the specified UrlSyndicationContent instance. |
属性
| AttributeExtensions |
获取此内容的属性扩展。Gets the attribute extensions for this content. (继承自 SyndicationContent) |
| Type |
获取 UrlSyndicationContent 的内容类型。Gets the content type of the UrlSyndicationContent. |
| Url |
获取 Uri 的 UrlSyndicationContent。Gets the Uri for the UrlSyndicationContent. |
方法
| Clone() |
创建现有 UrlSyndicationContent 实例的副本。Creates a copy of the existing UrlSyndicationContent instance. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| WriteContentsTo(XmlWriter) |
将 UrlSyndicationContent 实例内容写入指定的 XmlWriter。Writes the contents of the UrlSyndicationContent instance to the specified XmlWriter. |
| WriteTo(XmlWriter, String, String) |
在指定的元素和元素命名空间中,将此对象的内容写入指定的 XmlWriter。Writes the contents of this object to the specified XmlWriter within the specified element and element namespace. (继承自 SyndicationContent) |