C# Class Microsoft.OneDrive.Sdk.ShareRequest

The type ShareRequest.
Inheritance: BaseRequest, IShareRequest
显示文件 Open project: OneDrive/onedrive-sdk-csharp

Public Methods

Method Description
CreateAsync ( Share shareToCreate ) : System.Threading.Tasks.Task

Creates the specified Share using PUT.

CreateAsync ( Share shareToCreate, CancellationToken cancellationToken ) : System.Threading.Tasks.Task

Creates the specified Share using PUT.

DeleteAsync ( ) : System.Threading.Tasks.Task

Deletes the specified Share.

DeleteAsync ( CancellationToken cancellationToken ) : System.Threading.Tasks.Task

Deletes the specified Share.

Expand ( string value ) : IShareRequest

Adds the specified expand value to the request.

GetAsync ( ) : System.Threading.Tasks.Task

Gets the specified Share.

GetAsync ( CancellationToken cancellationToken ) : System.Threading.Tasks.Task

Gets the specified Share.

Select ( string value ) : IShareRequest

Adds the specified select value to the request.

ShareRequest ( string requestUrl, IBaseClient client, IEnumerable options ) : System

Constructs a new ShareRequest.

UpdateAsync ( Share shareToUpdate ) : System.Threading.Tasks.Task

Updates the specified Share using PATCH.

UpdateAsync ( Share shareToUpdate, CancellationToken cancellationToken ) : System.Threading.Tasks.Task

Updates the specified Share using PATCH.

Private Methods

Method Description
InitializeCollectionProperties ( Share shareToInitialize ) : void

Initializes any collection properties after deserialization, like next requests for paging.

Method Details

CreateAsync() public method

Creates the specified Share using PUT.
public CreateAsync ( Share shareToCreate ) : System.Threading.Tasks.Task
shareToCreate Share The Share to create.
return System.Threading.Tasks.Task

CreateAsync() public method

Creates the specified Share using PUT.
public CreateAsync ( Share shareToCreate, CancellationToken cancellationToken ) : System.Threading.Tasks.Task
shareToCreate Share The Share to create.
cancellationToken CancellationToken The for the request.
return System.Threading.Tasks.Task

DeleteAsync() public method

Deletes the specified Share.
public DeleteAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DeleteAsync() public method

Deletes the specified Share.
public DeleteAsync ( CancellationToken cancellationToken ) : System.Threading.Tasks.Task
cancellationToken CancellationToken The for the request.
return System.Threading.Tasks.Task

Expand() public method

Adds the specified expand value to the request.
public Expand ( string value ) : IShareRequest
value string The expand value.
return IShareRequest

GetAsync() public method

Gets the specified Share.
public GetAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

GetAsync() public method

Gets the specified Share.
public GetAsync ( CancellationToken cancellationToken ) : System.Threading.Tasks.Task
cancellationToken CancellationToken The for the request.
return System.Threading.Tasks.Task

Select() public method

Adds the specified select value to the request.
public Select ( string value ) : IShareRequest
value string The select value.
return IShareRequest

ShareRequest() public method

Constructs a new ShareRequest.
public ShareRequest ( string requestUrl, IBaseClient client, IEnumerable options ) : System
requestUrl string The URL for the built request.
client IBaseClient The for handling requests.
options IEnumerable Query and header option name value pairs for the request.
return System

UpdateAsync() public method

Updates the specified Share using PATCH.
public UpdateAsync ( Share shareToUpdate ) : System.Threading.Tasks.Task
shareToUpdate Share The Share to update.
return System.Threading.Tasks.Task

UpdateAsync() public method

Updates the specified Share using PATCH.
public UpdateAsync ( Share shareToUpdate, CancellationToken cancellationToken ) : System.Threading.Tasks.Task
shareToUpdate Share The Share to update.
cancellationToken CancellationToken The for the request.
return System.Threading.Tasks.Task