Show / Hide Table of Contents

Class ThumbnailsResource

The "thumbnails" collection of methods.

Inheritance
object
ThumbnailsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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)

As this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resource), I use a custom verb here.

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

Returns the Thumbnail with the given video IDs for Stubby or Apiary.

Returns
Type Description
ThumbnailsResource.SetRequest

Set(string, Stream, string)

As this is not an insert in a strict sense (it supports uploading/setting of a thumbnail for multiple videos, which doesn't result in creation of a single resource), I use a custom verb here.

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

Returns the Thumbnail with the given video IDs for Stubby or Apiary.

Stream stream

The stream to upload. See remarks for further information.

string contentType

The content type of the stream to upload.

Returns
Type Description
ThumbnailsResource.SetMediaUpload
Remarks

Considerations regarding stream:

  • If stream is seekable, then the stream position will be reset to 0 before reading commences. If stream is not seekable, then it will be read from its current position
  • Caller is responsible for maintaining the stream open until the upload is completed
  • Caller is responsible for closing the stream
In This Article
Back to top Generated by DocFX