Class PlaylistImagesResource
The "playlistImages" collection of methods.
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class PlaylistImagesResource
Constructors
PlaylistImagesResource(IClientService)
Constructs a new resource.
Declaration
public PlaylistImagesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete()
Deletes a resource.
Declaration
public virtual PlaylistImagesResource.DeleteRequest Delete()
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.DeleteRequest |
Insert(PlaylistImage)
Inserts a new resource into this collection.
Declaration
public virtual PlaylistImagesResource.InsertRequest Insert(PlaylistImage body)
Parameters
| Type | Name | Description |
|---|---|---|
| PlaylistImage | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.InsertRequest |
Insert(PlaylistImage, Stream, string)
Inserts a new resource into this collection.
Declaration
public virtual PlaylistImagesResource.InsertMediaUpload Insert(PlaylistImage body, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| PlaylistImage | body | The body of the request. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.InsertMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream
List()
Retrieves a list of resources, possibly filtered.
Declaration
public virtual PlaylistImagesResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.ListRequest |
Update(PlaylistImage)
Updates an existing resource.
Declaration
public virtual PlaylistImagesResource.UpdateRequest Update(PlaylistImage body)
Parameters
| Type | Name | Description |
|---|---|---|
| PlaylistImage | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.UpdateRequest |
Update(PlaylistImage, Stream, string)
Updates an existing resource.
Declaration
public virtual PlaylistImagesResource.UpdateMediaUpload Update(PlaylistImage body, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| PlaylistImage | body | The body of the request. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| PlaylistImagesResource.UpdateMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream