Class ArchiveResource
The "archive" collection of methods.
Inherited Members
Namespace: Google.Apis.GroupsMigration.v1
Assembly: Google.Apis.GroupsMigration.v1.dll
Syntax
public class ArchiveResource
Constructors
ArchiveResource(IClientService)
Constructs a new resource.
Declaration
public ArchiveResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Insert(string)
Inserts a new mail into the archive of the Google group.
Declaration
public virtual ArchiveResource.InsertRequest Insert(string groupId)
Parameters
Type | Name | Description |
---|---|---|
string | groupId | The group ID |
Returns
Type | Description |
---|---|
ArchiveResource.InsertRequest |
Insert(string, Stream, string)
Inserts a new mail into the archive of the Google group.
Declaration
public virtual ArchiveResource.InsertMediaUpload Insert(string groupId, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
string | groupId | The group ID |
Stream | stream | The stream to upload. See remarks for further information. |
string | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
ArchiveResource.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