Redigera

Dela via


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.

public:
 static System::ServiceModel::Syndication::InlineCategoriesDocument ^ Create(System::Collections::ObjectModel::Collection<System::ServiceModel::Syndication::SyndicationCategory ^> ^ categories);
public static System.ServiceModel.Syndication.InlineCategoriesDocument Create (System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> categories);
static member Create : System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> -> System.ServiceModel.Syndication.InlineCategoriesDocument
Public Shared Function Create (categories As Collection(Of SyndicationCategory)) As InlineCategoriesDocument

Parameters

categories
Collection<SyndicationCategory>

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

Returns

Returns InlineCategoriesDocument.

Applies to

Create(Uri)

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

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

public:
 static System::ServiceModel::Syndication::ReferencedCategoriesDocument ^ Create(Uri ^ linkToCategoriesDocument);
public static System.ServiceModel.Syndication.ReferencedCategoriesDocument Create (Uri linkToCategoriesDocument);
static member Create : Uri -> System.ServiceModel.Syndication.ReferencedCategoriesDocument
Public Shared Function Create (linkToCategoriesDocument As Uri) As ReferencedCategoriesDocument

Parameters

linkToCategoriesDocument
Uri

The URI of the categories document.

Returns

Returns ReferencedCategoriesDocument.

Applies to

Create(Collection<SyndicationCategory>, Boolean, String)

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

Creates a new instance of the CategoriesDocument class.

public:
 static System::ServiceModel::Syndication::InlineCategoriesDocument ^ Create(System::Collections::ObjectModel::Collection<System::ServiceModel::Syndication::SyndicationCategory ^> ^ categories, bool isFixed, System::String ^ scheme);
public static System.ServiceModel.Syndication.InlineCategoriesDocument Create (System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> categories, bool isFixed, string scheme);
static member Create : System.Collections.ObjectModel.Collection<System.ServiceModel.Syndication.SyndicationCategory> * bool * string -> System.ServiceModel.Syndication.InlineCategoriesDocument
Public Shared Function Create (categories As Collection(Of SyndicationCategory), isFixed As Boolean, scheme As String) As InlineCategoriesDocument

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