ItemsetFilePropertyViaStream Method |
Set a file stream to an item reference.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.20.39432
Syntaxpublic Item setFilePropertyViaStream(
string propertyName,
string fileName,
Stream stream
)
Public Function setFilePropertyViaStream (
propertyName As String,
fileName As String,
stream As Stream
) As Item
public Item setFilePropertyViaStream(
String propertyName,
String fileName,
Stream stream
)
public function setFilePropertyViaStream(
propertyName : String,
fileName : String,
stream : Stream
) : Item
Parameters
- propertyName
- Type: SystemString
name of property of type File for which new physical file should be set - fileName
- Type: SystemString
name of the file which should be attached to property of the item - stream
- Type: System.IOStream
stream with the file content which should be uploaded to Vault server
Return Value
Type:
ItemItem of type File generated by method
ExceptionsException | Condition |
---|
ArgumentNullException | -
Agrument "propertyName" is null or empty.
-
Agrument "fileName" is null or empty.
-
Agrument "stream" is null.
|
Remarks
This method will allow to add/update a value of property with data type Item and data source File.
Internally it will be created an item "File" with action "add" and set this new item to the property with name "propertyName".
When Apply method would be called on the container item, new file will uploaded to the user's default vault server.
See Also