C# 클래스 Amazon.DynamoDBv2.DataModel.S3Link

S3Link is an object that provides a connection to an S3 resource that can be stored in a DynamoDB field through DynamoDBContext
파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

공개 메소드들

메소드 설명
BeginDownloadTo ( string downloadPath, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DownloadTo operation.

BeginOpenStream ( AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the OpenStream operation.

BeginUploadFrom ( string sourcePath, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the UploadFrom operation.

BeginUploadStream ( Stream stream, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the UploadStream operation.

DownloadTo ( string downloadPath ) : void

Downloads the file from the S3Link's specified bucket and key then saves it in the given path. Creates directories and the file if they do not already exist.

DownloadToAsync ( string downloadPath, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Downloads the file from the S3Link's specified bucket and key then saves it in the given path. Creates directories and the file if they do not already exist.

EndDownloadTo ( IAsyncResult asyncResult ) : void

Finishes the asynchronous execution of the DownloadTo operation.

EndOpenStream ( IAsyncResult asyncResult ) : Stream

Finishes the asynchronous execution of the OpenStream operation.

EndUploadFrom ( IAsyncResult asyncResult ) : void

Finishes the asynchronous execution of the UploadFrom operation.

EndUploadStream ( IAsyncResult asyncResult ) : void

Finishes the asynchronous execution of the UploadStream operation.

MakeS3ObjectPublic ( bool enable ) : void

If enable is set to true the object will have its permission set to PublicRead otherwise the permissions will be set to Private.

OpenStream ( ) : Stream

Open stream to the data stored in Amazon S3.

OpenStreamAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Opens a stream to object stored in Amazon S3.

UploadFrom ( string sourcePath ) : void

Uploads the specified file and stores it in the specified bucket with the provided key from construction.

UploadFromAsync ( string sourcePath, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Uploads the specified file and stores it in the specified bucket with the provided key from construction.

UploadStream ( Stream stream ) : void

Uploads the stream and stores it in the specified bucket with the provided key from construction.

UploadStreamAsync ( Stream stream, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Uploads the stream and stores it in the specified bucket with the provided key from construction.

메소드 상세

BeginDownloadTo() 공개 메소드

Initiates the asynchronous execution of the DownloadTo operation.
public BeginDownloadTo ( string downloadPath, AsyncCallback callback, object state ) : IAsyncResult
downloadPath string Path to save the file.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property
리턴 IAsyncResult

BeginOpenStream() 공개 메소드

Initiates the asynchronous execution of the OpenStream operation.
public BeginOpenStream ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property
리턴 IAsyncResult

BeginUploadFrom() 공개 메소드

Initiates the asynchronous execution of the UploadFrom operation.
public BeginUploadFrom ( string sourcePath, AsyncCallback callback, object state ) : IAsyncResult
sourcePath string Path of the file to be uploaded.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property
리턴 IAsyncResult

BeginUploadStream() 공개 메소드

Initiates the asynchronous execution of the UploadStream operation.
public BeginUploadStream ( Stream stream, AsyncCallback callback, object state ) : IAsyncResult
stream Stream The stream of data to upload.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property
리턴 IAsyncResult

DownloadTo() 공개 메소드

Downloads the file from the S3Link's specified bucket and key then saves it in the given path. Creates directories and the file if they do not already exist.
public DownloadTo ( string downloadPath ) : void
downloadPath string Path to save the file.
리턴 void

DownloadToAsync() 공개 메소드

Downloads the file from the S3Link's specified bucket and key then saves it in the given path. Creates directories and the file if they do not already exist.
public DownloadToAsync ( string downloadPath, CancellationToken cancellationToken = default(CancellationToken) ) : Task
downloadPath string Path to save the file.
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.
리턴 Task

EndDownloadTo() 공개 메소드

Finishes the asynchronous execution of the DownloadTo operation.
public EndDownloadTo ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDownloadTo.
리턴 void

EndOpenStream() 공개 메소드

Finishes the asynchronous execution of the OpenStream operation.
public EndOpenStream ( IAsyncResult asyncResult ) : Stream
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginOpenStream.
리턴 Stream

EndUploadFrom() 공개 메소드

Finishes the asynchronous execution of the UploadFrom operation.
public EndUploadFrom ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginUploadFrom.
리턴 void

EndUploadStream() 공개 메소드

Finishes the asynchronous execution of the UploadStream operation.
public EndUploadStream ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginUploadStream.
리턴 void

MakeS3ObjectPublic() 공개 메소드

If enable is set to true the object will have its permission set to PublicRead otherwise the permissions will be set to Private.
public MakeS3ObjectPublic ( bool enable ) : void
enable bool If true the object will have its permission set to PublicRead otherwise the permissions will be set to Private.
리턴 void

OpenStream() 공개 메소드

Open stream to the data stored in Amazon S3.
public OpenStream ( ) : Stream
리턴 Stream

OpenStreamAsync() 공개 메소드

Opens a stream to object stored in Amazon S3.
public OpenStreamAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.
리턴 Task

UploadFrom() 공개 메소드

Uploads the specified file and stores it in the specified bucket with the provided key from construction.
public UploadFrom ( string sourcePath ) : void
sourcePath string Path of the file to be uploaded.
리턴 void

UploadFromAsync() 공개 메소드

Uploads the specified file and stores it in the specified bucket with the provided key from construction.
public UploadFromAsync ( string sourcePath, CancellationToken cancellationToken = default(CancellationToken) ) : Task
sourcePath string Path of the file to be uploaded.
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.
리턴 Task

UploadStream() 공개 메소드

Uploads the stream and stores it in the specified bucket with the provided key from construction.
public UploadStream ( Stream stream ) : void
stream Stream Stream to upload.
리턴 void

UploadStreamAsync() 공개 메소드

Uploads the stream and stores it in the specified bucket with the provided key from construction.
public UploadStreamAsync ( Stream stream, CancellationToken cancellationToken = default(CancellationToken) ) : Task
stream Stream Stream to be uploaded to Amazon S3.
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.
리턴 Task