SyndicationFeed.GetRss20Formatter 方法
定义
获取一个 Rss20FeedFormatter 实例。Gets an Rss20FeedFormatter instance.
重载
| GetRss20Formatter() |
获取一个 Rss20FeedFormatter 实例。Gets an Rss20FeedFormatter instance. |
| GetRss20Formatter(Boolean) |
获取一个新的 Rss20FeedFormatter 实例。Gets a new Rss20FeedFormatter instance. |
GetRss20Formatter()
获取一个 Rss20FeedFormatter 实例。Gets an Rss20FeedFormatter instance.
public:
System::ServiceModel::Syndication::Rss20FeedFormatter ^ GetRss20Formatter();
public System.ServiceModel.Syndication.Rss20FeedFormatter GetRss20Formatter ();
member this.GetRss20Formatter : unit -> System.ServiceModel.Syndication.Rss20FeedFormatter
Public Function GetRss20Formatter () As Rss20FeedFormatter
返回
一个 Rss20FeedFormatter 实例。An Rss20FeedFormatter instance.
适用于
GetRss20Formatter(Boolean)
获取一个新的 Rss20FeedFormatter 实例。Gets a new Rss20FeedFormatter instance.
public:
System::ServiceModel::Syndication::Rss20FeedFormatter ^ GetRss20Formatter(bool serializeExtensionsAsAtom);
public System.ServiceModel.Syndication.Rss20FeedFormatter GetRss20Formatter (bool serializeExtensionsAsAtom);
member this.GetRss20Formatter : bool -> System.ServiceModel.Syndication.Rss20FeedFormatter
Public Function GetRss20Formatter (serializeExtensionsAsAtom As Boolean) As Rss20FeedFormatter
参数
- serializeExtensionsAsAtom
- Boolean
一个指定是否使用 Atom 1.0 命名空间序列化元素和属性扩展的值。A value that specifies whether to serialize element and attribute extensions with an Atom 1.0 namespace.
返回
一个 Rss20FeedFormatter 实例。An Rss20FeedFormatter instance.
注解
RSS 2.0 规范允许使用未在其规范中指定的元素和属性,但前提是这些元素和属性必须在命名空间中。The RSS 2.0 specification allows elements and attributes that are not specified in its specification only if they are within a namespace. 如果 serializedExtensionsAsAtom 参数为 true 时,则格式化程序会自动将 a10 命名空间限定符添加到所有的扩展;否则,不会序列化扩展。When the serializedExtensionsAsAtom parameter is true, the formatter automatically adds the a10 namespace qualifier to all extensions; otherwise, the extensions are not serialized.