Upload a new file. This method does not block the calling thread.
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
| C# |
|---|
public void UploadReplaceAsync( UploadStream upStream, int docId ) |
| Visual Basic (Declaration) |
|---|
Public Sub UploadReplaceAsync ( _ upStream As UploadStream, _ docId As Integer _ ) |
| Visual C++ |
|---|
public: void UploadReplaceAsync( UploadStream^ upStream, int docId ) |
Parameters
- upStream
- Type: IpernityNET..::.UploadStream
A UploadStream object containing the stream to upload
- docId
- Type: System..::.Int32
The document ID to replace
Remarks
This method encapsulates upload.replace
This method requires "write" permission on docs.
This method requires a PRO account
Exceptions
| Exception | Condition |
|---|---|
| IpernityNET..::.IpernityException | Throwed when Ipernity returned an error |
| IpernityNET.IpernityObjects..::.ObjectNotConfiguredException | Throwed when an Ipernity object has not been configured. Use the method ConfigureIpernityObject(IpernityObject) to configure the object and allow it to interact with Ipernity |