Click or drag to resize
ItemExtensionsAsFile Method (IReadOnlyProperty, IConnection, Boolean)
Asynchronously download the file represented by the property

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IPromise<Stream> AsFile(
	this IReadOnlyProperty prop,
	IConnection conn,
	bool async
)

Parameters

prop
Type: Innovator.ClientIReadOnlyProperty
conn
Type: Innovator.ClientIConnection
async
Type: SystemBoolean

Return Value

Type: IPromiseStream
This will return the file contents for item properties of type 'File' and image properties that point to vault files

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyProperty. 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).
See Also