Click or drag to resize

FileShellContent Class

Defines the content of a Shell Item that's represented by a file. When created, an instance of the FileShellContent type opens a read-only stream to the file.
Inheritance Hierarchy

Namespace:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class FileShellContent : ShellContent, 
	IDisposable

The FileShellContent type exposes the following members.

Constructors
  NameDescription
Public methodFileShellContent
Initializes a new instance of the FileShellContent class.
Top
Properties
  NameDescription
Public propertyClsid
Gets the storage Class Id.
(Inherited from ShellContent.)
Public propertyCreationTime
Gets or sets the file creation time.
(Overrides ShellContentCreationTime.)
Public propertyInfo
Gets the FileInfo instance.
Public propertyLastAccessTime
Gets or sets the file last access time.
(Overrides ShellContentLastAccessTime.)
Public propertyLastWriteTime
Gets or sets the file last write time.
(Overrides ShellContentLastWriteTime.)
Public propertyLength
Gets the file length.
(Overrides ShellContentLength.)
Public propertyLocksSupported
Gets the content supported lock type.
(Inherited from ShellContent.)
Public propertyMode
Gets the stream mode.
(Inherited from ShellContent.)
Public propertyName
Gets or sets the file name.
(Overrides ShellContentName.)
Public propertyStateBits
Gets the stream state bits.
(Inherited from ShellContent.)
Protected propertyStream
Gets the underlying stream instance. Lazily loaded.
Public propertyType
Gets the content storage type for Shell operations.
(Overrides ShellContentType.)
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodFinalize
Frees all resources associated with this instance.
(Overrides ObjectFinalize.)
Public methodGetContentStream
Gets a stream instance on this content.
(Overrides ShellContentGetContentStream.)
Protected methodOpenRead
Opens the file for reading.
Public methodRead
Reads a sequence of bytes from the current content and advances the position within the stream by the number of bytes read.
(Overrides ShellContentRead(Byte, Int32).)
Public methodSeek
Sets the position within the current stream.
(Overrides ShellContentSeek(Int64, SeekOrigin).)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
See Also