| SharePointFolderUploadFile Method |
Uploads a file to the folder.
Namespace:
Galactic.SharePoint
Assembly:
Galactic.SharePoint (in Galactic.SharePoint.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public bool UploadFile(
string name,
Stream stream,
int fileLength,
SharePointClient client,
Dictionary<string, Object> requiredFieldValues = null
)
Public Function UploadFile (
name As String,
stream As Stream,
fileLength As Integer,
client As SharePointClient,
Optional requiredFieldValues As Dictionary(Of String, Object) = Nothing
) As Boolean
public:
bool UploadFile(
String^ name,
Stream^ stream,
int fileLength,
SharePointClient^ client,
Dictionary<String^, Object^>^ requiredFieldValues = nullptr
)
member UploadFile :
name : string *
stream : Stream *
fileLength : int *
client : SharePointClient *
?requiredFieldValues : Dictionary<string, Object>
(* Defaults:
let _requiredFieldValues = defaultArg requiredFieldValues null
*)
-> bool
Parameters
- name
- Type: SystemString
The name of the file to upload. - stream
- Type: System.IOStream
The IO stream object representing the file's contents. - fileLength
- Type: SystemInt32
The length of the file in bytes. - client
- Type: Galactic.SharePointSharePointClient
The SharePoint client that will be used to upload the file. - requiredFieldValues (Optional)
- Type: System.Collections.GenericDictionaryString, Object
Optional: A dictionary with values for fields that are required to be supplied
when uploading the file to the folder in SharePoint.
Return Value
Type:
BooleanTrue if the file could be uploaded, false otherwise.
See Also