Show / Hide Table of Contents

Class ChannelSectionsResource

The "channelSections" collection of methods.

Inheritance
System.Object
ChannelSectionsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class ChannelSectionsResource

Constructors

ChannelSectionsResource(IClientService)

Constructs a new resource.

Declaration
public ChannelSectionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(String)

Deletes a channelSection.

Declaration
public virtual ChannelSectionsResource.DeleteRequest Delete(string id)
Parameters
Type Name Description
System.String id

The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID.

Returns
Type Description
ChannelSectionsResource.DeleteRequest

Insert(ChannelSection, String)

Adds a channelSection for the authenticated user's channel.

Declaration
public virtual ChannelSectionsResource.InsertRequest Insert(ChannelSection body, string part)
Parameters
Type Name Description
ChannelSection body

The body of the request.

System.String part

The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

The part names that you can include in the parameter value are snippet and contentDetails.

Returns
Type Description
ChannelSectionsResource.InsertRequest

List(String)

Returns channelSection resources that match the API request criteria.

Declaration
public virtual ChannelSectionsResource.ListRequest List(string part)
Parameters
Type Name Description
System.String part

The part parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.

If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set part=snippet, the API response will also contain all of those nested properties.

Returns
Type Description
ChannelSectionsResource.ListRequest

Update(ChannelSection, String)

Update a channelSection.

Declaration
public virtual ChannelSectionsResource.UpdateRequest Update(ChannelSection body, string part)
Parameters
Type Name Description
ChannelSection body

The body of the request.

System.String part

The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

The part names that you can include in the parameter value are snippet and contentDetails.

Returns
Type Description
ChannelSectionsResource.UpdateRequest
Back to top