Show / Hide Table of Contents

Class WatermarksResource

The "watermarks" collection of methods.

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

Constructors

WatermarksResource(IClientService)

Constructs a new resource.

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

Methods

Set(InvideoBranding, String)

Allows upload of watermark image and setting it for a channel.

Declaration
public virtual WatermarksResource.SetRequest Set(InvideoBranding body, string channelId)
Parameters
Type Name Description
InvideoBranding body

The body of the request.

System.String channelId
Returns
Type Description
WatermarksResource.SetRequest

Set(InvideoBranding, String, Stream, String)

Allows upload of watermark image and setting it for a channel.

Declaration
public virtual WatermarksResource.SetMediaUpload Set(InvideoBranding body, string channelId, Stream stream, string contentType)
Parameters
Type Name Description
InvideoBranding body

The body of the request.

System.String channelId
System.IO.Stream stream

The stream to upload. See remarks for further information.

System.String contentType

The content type of the stream to upload.

Returns
Type Description
WatermarksResource.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.

Unset(String)

Allows removal of channel watermark.

Declaration
public virtual WatermarksResource.UnsetRequest Unset(string channelId)
Parameters
Type Name Description
System.String channelId
Returns
Type Description
WatermarksResource.UnsetRequest
Back to top