Show / Hide Table of Contents

Class ThumbnailsResource

The "thumbnails" collection of methods.

Inheritance
System.Object
ThumbnailsResource
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 ThumbnailsResource

Constructors

ThumbnailsResource(IClientService)

Constructs a new resource.

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

Methods

Set(String)

Uploads a custom video thumbnail to YouTube and sets it for a video.

Declaration
public virtual ThumbnailsResource.SetRequest Set(string videoId)
Parameters
Type Name Description
System.String videoId

The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.

Returns
Type Description
ThumbnailsResource.SetRequest

Set(String, Stream, String)

Uploads a custom video thumbnail to YouTube and sets it for a video.

Declaration
public virtual ThumbnailsResource.SetMediaUpload Set(string videoId, Stream stream, string contentType)
Parameters
Type Name Description
System.String videoId

The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.

System.IO.Stream stream

The stream to upload.

System.String contentType

The content type of the stream to upload.

Returns
Type Description
ThumbnailsResource.SetMediaUpload
Back to top