Class MediaResource
The "media" collection of methods.
Inheritance
System.Object
MediaResource
Namespace: Google.Apis.PlusDomains.v1
Assembly: Google.Apis.PlusDomains.v1.dll
Syntax
public class MediaResource : object
Constructors
MediaResource(IClientService)
Constructs a new resource.
Declaration
public MediaResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Insert(Media, String, MediaResource.InsertMediaUpload.CollectionEnum, Stream, String)
Shut down. See https://developers.google.com/+/api-shutdown for more details.
Declaration
public virtual MediaResource.InsertMediaUpload Insert(Media body, string userId, MediaResource.InsertMediaUpload.CollectionEnum collection, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
Media | body | The body of the request. |
System.String | userId | The ID of the user to create the activity on behalf of. |
MediaResource.InsertMediaUpload.CollectionEnum | collection | |
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 |
---|---|
MediaResource.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
.
Insert(Media, String, MediaResource.InsertRequest.CollectionEnum)
Shut down. See https://developers.google.com/+/api-shutdown for more details.
Declaration
public virtual MediaResource.InsertRequest Insert(Media body, string userId, MediaResource.InsertRequest.CollectionEnum collection)
Parameters
Type | Name | Description |
---|---|---|
Media | body | The body of the request. |
System.String | userId | The ID of the user to create the activity on behalf of. |
MediaResource.InsertRequest.CollectionEnum | collection |
Returns
Type | Description |
---|---|
MediaResource.InsertRequest |