共用方式為


SyndicationFeed.BaseUri 屬性

定義

取得或設定 SyndicationFeed 執行個體的基底 URI。

public:
 property Uri ^ BaseUri { Uri ^ get(); void set(Uri ^ value); };
public Uri BaseUri { get; set; }
member this.BaseUri : Uri with get, set
Public Property BaseUri As Uri

屬性值

Uri

SyndicationFeed 執行個體的基底 URI。

範例

下列程式碼會示範如何存取 SyndicationFeed 執行個體的基底 URI。

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
Uri baseUri = feed.BaseUri;
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now)
Dim baseUri As Uri = feed.BaseUri

適用於