BinaryResource.OpenStream Method
When overridden in a derived class, opens a stream on the resource.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function OpenStream ( _
access As FileAccess _
) As Stream
public abstract Stream OpenStream(
FileAccess access
)
public:
virtual Stream^ OpenStream(
FileAccess access
) abstract
abstract OpenStream :
access:FileAccess -> Stream
public abstract function OpenStream(
access : FileAccess
) : Stream
Parameters
- access
Type: System.IO.FileAccess
The FileAccess to use when opening the resource. For example, Read or Write.
Return Value
Type: System.IO.Stream
A Stream on the resource.
Remarks
Currently ReadWrite access is not allowed. The stream does not lock any disk-based file.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace