Upload a new file
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
| C# |
|---|
public void UploadReplace( string filename, int docId ) |
| Visual Basic (Declaration) |
|---|
Public Sub UploadReplace ( _ filename As String, _ docId As Integer _ ) |
| Visual C++ |
|---|
public: void UploadReplace( String^ filename, int docId ) |
Parameters
- filename
- Type: System..::.String
The file name 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 |