Class ChannelBannersResource
The "channelBanners" collection of methods.
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class ChannelBannersResource
Constructors
ChannelBannersResource(IClientService)
Constructs a new resource.
Declaration
public ChannelBannersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Insert(ChannelBannerResource)
Inserts a new resource into this collection.
Declaration
public virtual ChannelBannersResource.InsertRequest Insert(ChannelBannerResource body)
Parameters
Type | Name | Description |
---|---|---|
ChannelBannerResource | body | The body of the request. |
Returns
Type | Description |
---|---|
ChannelBannersResource.InsertRequest |
Insert(ChannelBannerResource, Stream, string)
Inserts a new resource into this collection.
Declaration
public virtual ChannelBannersResource.InsertMediaUpload Insert(ChannelBannerResource body, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
ChannelBannerResource | 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 |
---|---|
ChannelBannersResource.InsertMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
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