Share via


UrlSyndicationContent 類別

定義

表示包含其他資源之 URL 的新聞訂閱內容。

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

範例

下列範例將示範如何使用 UrlSyndicationContent 類別。

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 類別的新執行個體。

UrlSyndicationContent(UrlSyndicationContent)

使用指定的 UrlSyndicationContent 執行個體,初始化 UrlSyndicationContent 類別的新執行個體。

屬性

AttributeExtensions

取得此內容的屬性延伸。

(繼承來源 SyndicationContent)
Type

取得 UrlSyndicationContent 的內容類型。

Url

取得 UriUrlSyndicationContent

方法

Clone()

建立現有 UrlSyndicationContent 執行個體的複本。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
WriteContentsTo(XmlWriter)

UrlSyndicationContent 執行個體的內容寫入指定的 XmlWriter

WriteTo(XmlWriter, String, String)

將此物件的內容寫入指定項目與項目命名空間中,指定的 XmlWriter 內。

(繼承來源 SyndicationContent)

適用於