CategoriesDocument.Create Method

Definition

Creates a new CategoriesDocument instance.

Overloads

Create(Collection<SyndicationCategory>)

Creates a new CategoriesDocument instance.

Create(Uri)

Creates a new instance of the CategoriesDocument initializing it with the specified Uri.

Create(Collection<SyndicationCategory>, Boolean, String)

Creates a new instance of the CategoriesDocument class.

Create(Collection<SyndicationCategory>)

Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs

Creates a new CategoriesDocument instance.

C#
public static System.ServiceModel.Syndication.InlineCategoriesDocument Create(System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> categories);

Parameters

categories
Collection<SyndicationCategory>

A collection of SyndicationCategory instances used to initialize the new CategoriesDocument instance.

Returns

Returns InlineCategoriesDocument.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Uri)

Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs

Creates a new instance of the CategoriesDocument initializing it with the specified Uri.

C#
public static System.ServiceModel.Syndication.ReferencedCategoriesDocument Create(Uri linkToCategoriesDocument);

Parameters

linkToCategoriesDocument
Uri

The URI of the categories document.

Returns

Returns ReferencedCategoriesDocument.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

Create(Collection<SyndicationCategory>, Boolean, String)

Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs
Source:
CategoriesDocument.cs

Creates a new instance of the CategoriesDocument class.

C#
public static System.ServiceModel.Syndication.InlineCategoriesDocument Create(System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> categories, bool isFixed, string scheme);

Parameters

categories
Collection<SyndicationCategory>

A collection of categories.

isFixed
Boolean

A value that specifies whether a user can add a category to the categories document.

scheme
String

The scheme of the categories document.

Returns

Returns InlineCategoriesDocument.

Remarks

If the isFixed parameter is set to true, the categories contained within the categories document are immutable. If the isFixed parameter is set to true, additional categories can be added to the categories document.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)