Converts an ExpandoObject that represents a file (such as that returned by query/queryslim for file fields) into a FileObject model.
Namespace: Relativity.Services.Objects.Extensions
Assembly: Relativity.Services.Interfaces (in Relativity.Services.Interfaces.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax
Parameters
- expando
- Type: System.Dynamic.ExpandoObject
An ExpandoObject with FileId, FileFieldArtifactId, and FileName properties.
Return Value
Type: FileObjectA FileObject populated with the data from expando
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ExpandoObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ServiceSerializationException | Thrown when expando does not contain the properties FileObject contains. |
See Also